Delete method
Example |
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.
|
Value of DestFolder property will be ignored.
|
If fofAllowUndo flag in Options is False, the file(s) will be deleted permanently, without further possibility to restore them.
|
FileList and Options properties.
|
Execute, Copy, Move and Rename methods.
|