FileDelete
function FileDelete(FileName: string): boolean;
This function deletes an existing file (or file mask). If the file does not exists the function still succeeds and returns true. It fails only if the file is locked and/or cannot be deleted for some reason.
Parameters
FileName |
The full path to the file(s) to be deleted. Ex: 'C:\Files\MyDoc.txt' or 'C:\Files\*.tmp' |
Return value
True |
The specified file(s) has been successfully deleted |
False |
Could not delete the file (either it was locked or Syncplify.me Server! didn't have the OS permission to delete it) |