TrashResource Method
Moves the specified file or folder to the trash.
Syntax
void __fastcall TrashResource(String ResourceId);
Remarks
This method moves the file or folder specified by ResourceId to the trash. The resource may be restored from the trash by calling RestoreResource.
To permanently delete a resource, call DeleteResource. To empty the trash (thus permanently deleting all trashed items), call EmptyTrash.