Skip to content

Move media to trash

POST
/media/{id}/folder/{folderId}/move_to_trash
curl --request POST \
--url https://api.colourbox.com/media/1/folder/1/move_to_trash \
--header 'Authorization: CBX-SIMPLE-TOKEN Token=<token>'

Moves a media file to the authenticated user’s trashcan. If the media is already in the trashcan (or a subfolder) it is permanently deleted.

id
required
integer
folderId
required
integer

Success