Purging all files from the trash
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 30, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Delete all of the files from the trash permanently.
The requestor must have permission to permanently delete files from the trash.
  • {userid} is the value of the <snx:userid> of the person who owns the files. See Searching Profiles for information about how to determine a person's user ID.
Input
Method URI Description
DELETE /files/{auth}/api/userlibrary/{userid}/view/recyclebin/feed Permanently deletes all files from someone else's recycle bin.
DELETE /files/{auth}/api/myuserlibrary/view/recyclebin/feed Permanently deletes all files from the user's recycle bin (My Recycle Bin).
Name Type Optional Description
userid
string Yes {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.
auth
enumerated No The authorization protocol being used by your application to access Connections Cloud.
Authorized values:
  • basic
  • oauth
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.
Authorization
enumerated No The authentication mechanism selected by your application to access the API.
Basic is the Base64 encoding of the IBM Connections Cloud username and password: Base64(username:password). For example, Base64(twatson@us.ibm.com:password).
Bearer is the oauth 2.0 access token that is generated when the user grants your application access to IBM Connections Cloud services.
See the reference topic "OAuth 2.0 APIs for web server flow" for more information.
Authorized values:
  • bearer
  • basic
Output
Code Description
204
Indicates that the files were successfully purged from the trash.
401
Unauthorized.
404
Not Found.