Community articleDeleting or moving to trash a photo or video
Added by IBM contributorIBM on March 26, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Provides details on deleting or moving a photo or video to trash.

Delete or Move to Trash a photo or video and the Atom document representation of its associated metadata from the Media Gallery. If move to trash has not been enabled for the community, then this action will delete the file.



Method URI Description
POST /files/form/cmis/repository/{repositoryId}/versions/{versionId} You can determine the URI in either of the following ways:
Value of the href attribute of the element in the file's Document Atom entries.
Construct the URI using the following syntax: {filesServiceUrl}/form/cmis/repository/{repositoryId}/versions/{versionId}
Content Type: text/plain
Name Type Optional Description
string No Use the value "DELETE". Tunnels a DELETE request over HTTP POST
string Yes See Retrieving Nonce and User id for how to retrieve the nonce value.