Skip to main content

Files - delete a file

DELETE 

/api/v1/files/:fileId

Permanently deletes an uploaded file and the stored blob behind it. This cannot be undone, and any task result that still points at the blob stops resolving. Files also expire on their own, so call this only when you need the storage released sooner than that.

Request

Responses

File deleted

Reference

DELETE /api/v1/files/{fileId}

Permanently deletes an uploaded file and the stored blob behind it. This cannot be undone, and any task result that still points at the blob stops resolving. Files also expire on their own, so call this only when you need the storage released sooner than that.

Parameters

ParameterInTypeRequiredDescription
fileIdpathstringyesFile ID

Responses

StatusDescription
200File deleted
404Not found

Example request

curl -X DELETE "https://api.bitbybit.dev/api/v1/files/{fileId}" \
-H "x-api-key: YOUR_API_KEY"

Authentication: send your key in the x-api-key header. The full machine-readable specification is at openapi.json.