fileoperations Delete method
Example
Return to Introduction  Previous page  Next page
Applies to
dcFileOperations component.  

Declaration
function Delete: Boolean; // returns True if succeed  

Description
The Delete method moves file(s) and/or folder(s) from the FileList to "Recycled bin". Function returns True if succeed (file(s) has been successfully deleted), or False if any error occurs or operation has been canceled by user.  

Notes
iiinfo Value of DestFolder property will be ignored.  
iiwarning If fofAllowUndo flag in Options is False, the file(s) will be deleted permanently, without further possibility to restore them.  

See also
FileList and Options properties.  
Execute, Copy, Move and Rename methods.