# Delete a context (and its Pinecone indexes)

`DELETE /contexts/{slug}`

:::code-group
```bash title="cURL"
curl --request DELETE \
  --url https://{host}/api/contexts/{slug} \
  --header 'Authorization: Bearer <token>'
```

```json title="404"
{
  "message": "<string>",
  "code": "<string>"
}
```
:::

## Authorizations

- `Authorization` (header, string, required) — Bearer authentication header of the form `Bearer <token>`.

## Path Parameters

- `slug` (path, string, required) — Context slug or UUID.

## Headers

- `X-Pinecone-Api-Version` (header, string) — Date-based contract version, echoed back on the same header. Omit for the default (`2026-07`); send `unstable` for the in-development surface. An unrecognized value is rejected with `400 unsupported_api_version`.

## Response

- `200` — Deleted (empty body)
- `404` — Not found
- `504` — Active tasks did not terminate in time

## Related pages

- [List contexts (newest first, with stats)](./data-plane-contexts-list-contexts-newest-first-with-stats.md)
- [Create a context](./data-plane-contexts-create-a-context.md)
- [Get a context](./data-plane-contexts-get-a-context.md)
- [Update a context](./data-plane-contexts-update-a-context.md)
- [Per-context task statistics](./data-plane-contexts-per-context-task-statistics.md)
- [Trigger an on-demand self-tuning optimize](./data-plane-contexts-trigger-an-on-demand-self-tuning-optimize.md)
- [Run the Design-flow explore agent (propose a manifest)](./data-plane-contexts-run-the-design-flow-explore-agent-propose-a-manifest.md)
- [Estimate the token + time cost of curating the in-progress manifest](./data-plane-contexts-estimate-the-token-time-cost-of-curating-the-in-progress-manifest.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
