DeleteResource Method
Trashes or permanently deletes a resource.
Syntax
void __fastcall DeleteResource(String ResourceId);
Remarks
This method trashes the resource specified by ResourceId. If the resource is already in the trash, it is permanently deleted instead.
To list trashed resources, call ListResources and pass trash for the FolderId method parameter.