Try Bifrost Enterprise free for 14 days. Explore now
cURL
curl --request DELETE \ --url http://localhost:8080/openai/v1/files/{file_id}
{ "id": "<string>", "object": "<string>", "deleted": true, "extra_fields": { "request_type": "<string>", "provider": "openai", "model_requested": "<string>", "model_deployment": "<string>", "latency": 123, "chunk_index": 123, "raw_request": {}, "raw_response": {}, "cache_debug": { "cache_hit": true, "cache_id": "<string>", "hit_type": "<string>", "provider_used": "<string>", "model_used": "<string>", "input_tokens": 123, "threshold": 123, "similarity": 123 } } }
Deletes an uploaded file.
Note: This endpoint also works without the /v1 prefix (e.g., /openai/files/{file_id}).
/v1
/openai/files/{file_id}
File ID to delete
Provider for the file
Successful response
Additional fields included in responses
Show child attributes
Was this page helpful?