Box Developer Documentation

Remove Item from Collection

Guides Collections Remove Item from Collection
Edit this page

Remove Item from Collection

To remove an item from a collection, call the PUT endpoint for that specific type of item and pass along a list of collection IDs that does not include the ID of the collection that needs to be removed.

The only collection that is available via the API is the "Favorites" collection and therefore to remove an item from this collection can be achieved by passing the API an empty array of collections.

Remove file from collection

To remove a file from a collection, call the PUT /files/:id API and pass an empty array of collection IDs.

Remove folder from collection

To remove a folder from a collection, call the PUT /folders/:id API and pass an empty array of collection IDs.

To remove a web link from a collection, call the PUT /web_links/:id API and pass an empty array of collection IDs.