Delete a file
DELETE/v1/files/:file_id
Hard delete: the bytes and the metadata are both gone. A request that names it afterwards gets a 404.
Request
Responses
- 200
- 400
- 401
- 404
- 422
- 503
Deleted.
An invalid parameter (invalid_value), an unsupported type (unsupported_file_type), or a batch input that is not a .jsonl file (invalid_file).
Missing or invalid Authorization: Bearer mdb_… (invalid_credentials).
No file with this id, or it has expired or belongs to someone else (file_not_found).
Validation Error
The Files API is unavailable (files_api_unavailable).