Skip to main content
DELETE
string
required
The API key for your account. You can find this in your account settings.
Delete removes one file, or up to 100 files in a single request. A delete is immediate and final: the file stops being served and its space is freed from your quota. Requires the blob:write scope. Deleting doesn’t need an active plan, so you can always clean up.
  • One id (object, or objects with a single entry): answers 200 when deleted, 404 OBJECT_NOT_FOUND when the file doesn’t exist.
  • Two or more ids (objects): always answers 200 with the result of each file, so one missing file doesn’t fail the rest. Repeated ids count once.
An id that is malformed or belongs to another account fails the whole request with 400 INVALID_OBJECT, before anything is deleted. To find the ids, use Object List.

Parameters

string
The id of the file to delete. Send object or objects.
string[]
Up to 100 ids to delete in one request.

Rate limits

1000 files per 10 seconds, counted per file: a batch of 100 counts as 100. Past that the account is blocked for a short period (RATE_LIMITED, 429).

Response

string
“success” if successful, “error” if not.
object
Present only for batches (two or more ids).

Errors