ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Dialogs.FileOperation.TJamFileOperation.Delete

Deletes a file or folder.

Syntax
Pascal
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');