Deleting or moving to trash a photo or video
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 7, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Delete or move 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
enumerated No The authorization protocol being used by your application to access Connections Cloud.
Authorized values:
  • basic
  • oauth
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.