Skip to main content
DELETE
Purge multiple storage items based on filtering criteria such as age, MIME type, or metadata. Use this for bulk cleanup operations.

Authorization

string
required
Bearer token for authentication. Format: Bearer <your-api-key>

Required Permission

STORAGE_WRITE

Request Body

string
Filter by file kind. Available values: image, video, audio, document
string
ISO 8601 date - purge items created before this date
string
ISO 8601 date - purge items created after this date

Response

string
Success message indicating the operation result
number
Number of items purged (or would be purged if dry run)
This action is irreversible. Deleted files cannot be recovered.
Combine kind, before, and after to target specific files. For example, purge all images created before a specific date.