Working with files in the trash
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 16, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Using the Atom Publishing Protocol, also known as AtomPub, you can get a feeds of the files in your recycle bin and can retrieve, restore, and purge files from the trash.
GET

/files/{auth}/api/userlibrary/{userid}/view/recyclebin/{document-id}/entry

Retrieving a file from someone else's trash.
GET

/files/{auth}/api/myuserlibrary/view/recyclebin/{document-id}/entry

Retrieving a file from the user's trash (My Recycle Bin).
DELETE

/files/{auth}/api/userlibrary/{userid}/view/recyclebin/{document-id}/entry

Purging a file from the someone else's trash.
DELETE

/files/{auth}/api/myuserlibrary/view/recyclebin/{document-id}/entry

Purging a file from the user's trash (My Recycle Bin).
DELETE

/files/{auth}/api/userlibrary/{userid}/view/recyclebin/feed

Purging all files from someone else's trash.
DELETE

/files/{auth}/api/myuserlibrary/view/recyclebin/feed

Purging all files from the user's trash (My Recycle Bin).
PUT

/files/{auth}/api/userlibrary/{userid}/view/recyclebin/{document-id}/entry

Restoring a file from someone else's trash.
PUT

/files/{auth}/api/myuserlibrary/view/recyclebin/{document-id}/entry

Restoring a file from the user's trash (My Recycle Bin).