Delete files
Delete one file or up to 100 files per request from Blob Storage with DELETE /v1/objects, with per-file results for batches.
DELETE
string
required
The API key for your account. You can find this in your account settings.
blob:write scope. Deleting doesn’t need an active plan, so you can always clean up.
- One id (
object, orobjectswith a single entry): answers200when deleted,404 OBJECT_NOT_FOUNDwhen the file doesn’t exist. - Two or more ids (
objects): always answers200with the result of each file, so one missing file doesn’t fail the rest. Repeated ids count once.
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
Related
- Blob SDK:
blob.delete()

