Files API
Delete File
Delete a file by ID.
DELETE
/
v1
/
files
/
{file_id}
curl -X DELETE https://gateway.bud.studio/v1/files/file-abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "file-abc123",
"object": "file",
"deleted": true
}
curl -X DELETE https://gateway.bud.studio/v1/files/file-abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "file-abc123",
"object": "file",
"deleted": true
}
Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer authentication header |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| file_id | string | Yes | The ID of the file to delete |
Supported Providers
OpenAI
File management for Batch API and Assistants
Azure OpenAI
Enterprise file storage with compliance
⌘I
curl -X DELETE https://gateway.bud.studio/v1/files/file-abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "file-abc123",
"object": "file",
"deleted": true
}