> ## Documentation Index
> Fetch the complete documentation index at: https://docs.budecosystem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete File

> Delete a file by ID.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://gateway.bud.studio/v1/files/file-abc123 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "file-abc123",
    "object": "file",
    "deleted": true
  }
  ```
</ResponseExample>

## 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

<CardGroup cols={2}>
  <Card title="OpenAI" icon="openai">
    File management for Batch API and Assistants
  </Card>

  <Card title="Azure OpenAI" icon="microsoft">
    Enterprise file storage with compliance
  </Card>
</CardGroup>
