MoveToTrash Method
Moves the selected file or folder to the trash.
Syntax
int MoveToTrash();
Remarks
This method moves file or folder specified by ResourceId to the trash. The resource may be restored from the trash by calling RestoreFromTrash.
To permanently delete a resource call DeleteResource.