Delete Store File
Delete a file from a store.
DELETE
ApiKeyAuthheader
AuthorizationBearer <token>Api key to access Mixedbreads API
store_identifier*|The ID or name of the store
file_identifier*|The ID or name of the file to delete
The deleted store file details
application/json- response
Response model for file deletion.
id*IdID of the deleted file
deleted?DeletedWhether the deletion was successful
Default
trueobject?ObjectType of the deleted object
Default
"store.file"from mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
response = mxbai.stores.files.delete(
store_identifier="my-knowledge-base",
file_identifier="f47ac10b-58cc-4372-a567-0e02b2c3d479",
)
print(response)
Example Response
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"object": "store.file",
"deleted": true
}