Delete a file
API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai
Soft-deletes the file record and best-effort removes the object from storage. Idempotent.
Authorization
BearerAuth AuthorizationBearer <token>
API key authentication (OpenAI format). Pass in the Authorization header:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Path Parameters
id*string
File ID (with file- prefix)
Response Body
application/json
application/json
application/json
curl -X delete "https://api.xrtoken.ai/v1/files/string"{
"id": "string",
"object": "file",
"deleted": true
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "string",
"type": "invalid_request_error"
}