bool DeleteFile(string)
Deletes the file at the given file path
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
filePath |
string The path of the new file. |
Return
True upon success, and false if the file did not exist.
Remarks
The kiosk user must have sufficient permissions to perform any file IO operation that performs a read or write operation on the current disk.
Examples
var sampleFile = KioApp.DoUrlSubstitution('$$KIO_USERDATA$$') + 'sampleFile.txt';
if(!KioFileIO.DeleteFile(sampleFile))
alert('Failed to delete ' + sampleFile);
Requirements
KioWare for Windows version 8.2 or greater.