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

# Delete training data

> Requires a token with the external-api:write ability. id string required Format: uuid . cURL JavaScript Python PHP cURL JavaScript Python PHP 204 No Content 404 Not Found 401 Unauthorized

```http
DELETE https://api.weav.com/v1/training-data/{id}
```

Requires a token with the `external-api:write` ability.

## Path parameters

<ParamField path="id" type="string" required>
Format: `uuid`.
</ParamField>

## Request

<CodeGroup>

```bash cURL
curl --request DELETE \
  --url 'https://api.weav.com/v1/training-data/{id}' \
  --header "Authorization: Bearer ${WEAV_API_TOKEN}"
```

```js JavaScript
const response = await fetch("https://api.weav.com/v1/training-data/{id}", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.WEAV_API_TOKEN}`
  }
});
console.log(response.status);
```

```python Python
import os
import requests

headers = {"Authorization": f"Bearer {os.environ['WEAV_API_TOKEN']}"}
response = requests.delete("https://api.weav.com/v1/training-data/{id}", headers=headers)
print(response.status_code)
```

```php PHP
use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('DELETE', 'https://api.weav.com/v1/training-data/{id}', [
    'headers' => ['Authorization' => 'Bearer '.getenv('WEAV_API_TOKEN')],
]);
echo $response->getStatusCode();
```

</CodeGroup>

## Response

- `204` No Content
- `404` Not Found
- `401` Unauthorized

---

This knowledge base is built and hosted on [Weav](https://weav.com).
