Skip to main content
Media Files/FoldersVersion: v3

Bulk Delete / Trash Files/Folders

PUT/medias/delete-files

Soft-deletes or trashes multiple files and folders in a single request

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3

Body

filesToBeDeletedobject[]required

Array of file objects to be deleted or trashed

Example
[
  {
    "_id": "686f630df0d3166d68fbcec2"
  }
]
altTypestringrequired

Type of entity that owns the files

Available optionslocation
Example:location
altIdstringrequired

Location identifier

Example:sx6wyHhbFdRXh302LLNR
statusstringrequired

Status to set for the files (deleted or trashed)

Available optionsdeletedtrashed
Example:deleted

Response

Successful response