ShellBrowser Delphi Components Documentation
|
Deletes a file or folder.
class procedure Delete(const pFileName: string; pOptions: TOperationOptions = soDefault); overload; static;
Parameters |
Description |
const pFileName: string |
The file or folder that should be deleted. |
pOptions: TOperationOptions = soDefault |
Optional: The options to use. |
Exceptions |
Description |
EArgumentException |
if pFileName is empty. |
if pFileName is invalid. |
The following example shows how to delete a file:
TJamFileOperation.Delete('C:file.exe');