Skip to main content
This action is irreversible, and it deletes folders recursively. Pointing this endpoint at a folder removes that folder, everything inside it at every depth, and all their cached variants, in one call and with no confirmation step. Check the path before you send it.
Deletes the file or folder at {path}, along with its cached transformation variants.
To clear cached variants and keep the original, use Invalidate Cache instead. Auth: API key required. A dashboard session cookie also works.

Path parameters

Response

  • jobsDeleted, number: queued processing jobs cancelled and removed
  • localCacheFilesDeleted, number: cached transformation variants removed from local disk
  • cloudCacheFilesDeleted, number: cached transformation variants removed from cloud storage
Deleting a folder on cloud storage returns early once the folder is removed, so jobsDeleted and the cache counters stay at 0 even though the folder’s objects are gone.

Partial deletion

If the original was removed but some cleanup step failed, the response has a different shape: no success field, and an errors array inside details.
The status is 200 when originalFileDeleted is true and 500 when it is false. Branch on the presence of error, not on success.

Invalidate Cache

Clear cached variants while keeping the original.

List Storage

Browse folders and files before deleting.

Move File or Folder

Move instead of deleting.