## Delete a training file

**delete** `/v2/training_data/files/{id}`

Removes a training file from the workspace and attempts search-index cleanup. In-flight answers may already contain earlier knowledge.

### Path Parameters

- `id: string`

  The training file ID

### Header Parameters

- `"Featurebase-Version": optional "2026-08-19.orbit" or "2026-01-01.nova" or "2025-12-12.clover"`

  - `"2026-08-19.orbit"`

  - `"2026-01-01.nova"`

  - `"2025-12-12.clover"`

### Returns

- `id: string`

  ID of the deleted training file

- `deleted: true`

  Indicates the resource was deleted

  - `true`

- `object: "training_file"`

  Object type identifier

  - `"training_file"`

### Example

```http
curl https://do.featurebase.app/v2/training_data/files/$ID \
    -X DELETE \
    -H "Authorization: Bearer $FEATUREBASE_API_KEY"
```

#### Response

```json
{
  "id": "67ec1234abcd5678ef901234",
  "deleted": true,
  "object": "training_file"
}
```
