Delete File
DELETE/v1/files/{file_id}
Authorization
Authorizationstringrequired
Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
Path Parameters
file_idstringrequired
The ID of the file to delete
Response Body
idstringrequired
The ID of the deleted file
deletedbooleandefault:
trueWhether the file was deleted
objectstringdefault:
fileThe type of the deleted object
Request
DELETE/v1/files/{file_id}
from mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
response = mxbai.files.delete(file_id="f47ac10b-58cc-4372-a567-0e02b2c3d479")
print(response)Response
JSON
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"deleted": true,
"object": "file"
}Last updated: January 7, 2026