Community articlePurging a file from the trash
Added by IBM contributorIBM on June 23, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Delete a file from the trash permanently.



Delete a file from the trash permanently.

See Authenticating requests for information about how to authenticate the request. The requestor must have permission to permanently delete the specified file from the trash.
 

  • {userid} is the value of the <snx:userid> of the person who owns the file. See Searching Profiles for information about how to determine a person's user ID.
  • {document-id} is the value of the <td:uuid> of the file and can be found in the file's Atom document.
     

Input


None.

Output


None.
 

Input
Method URI Description
DELETE /files/basic/api/userlibrary/{userid}/view/recyclebin/{document-id}/entry Permanently deletes a file from the specified person's recycle bin
DELETE /files/basic/api/myuserlibrary/view/recyclebin/{document-id}/entry Permanently deletes a file from your recycle bin
Name Type Optional Description
userid
string No {userid} is the value of the <snx:userid> of the person who owns the file. See Searching Profiles for information about how to determine a person's user ID.
document-id
string No {document-id} is the value of the <td:uuid> or <td:label> of the file and can be found in the file's Atom document. If you specify the document by label, you must also provide the identifier=label parameter as part of the request.
Name Type Optional Description
X-Update-Nonce
string Yes String. Represents a unique data string generated by the server upon request that you can provide to secure the request. See Getting a nonce key for information about how to request the data string.
Output
Code Description
204
Indicates that the file was successfully purged from the trash.
401
Unauthorized.
404
Not Found.