DeleteResource Method
Trashes or permanently deletes a resource.
Syntax
public void 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.