Bulk Delete / Trash Files/Folders
PUT/medias/delete-files
Soft-deletes or trashes multiple files and folders in a single request
Request
Version stringrequired
API Version
Available options
v3- application/json
- Body
- Example (auto)
Bodyrequired
filesToBeDeletedobject[]required
Array of file objects to be deleted or trashed
altTypestringrequired
Type of entity that owns the files
Available options
locationaltIdstringrequired
Location identifier
statusstringrequired
Status to set for the files (deleted or trashed)
Available options
deletedtrashed{
"filesToBeDeleted": [
{
"_id": "686f630df0d3166d68fbcec2"
}
],
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR",
"status": "deleted"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
[
{
"deleted": true,
"id": "686f630df0d3166d68fbcec2"
}
]