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

function Delete: Boolean; // returns True if succeed  

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.  

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.