---
title: "Delete Context"
method: DELETE
path: "/api/v1/contexts/{context_id}"
tags: ["contexts"]
---

# Delete Context

`DELETE /api/v1/contexts/{context_id}`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/contexts/{context_id}`
- Auth: none declared

Delete a context and its collection.

Only context owner can delete their context. The context, its memories and
its files are soft-deleted together and the files' bytes leave the storage
quota at once (#1960); an admin restore within 6 days brings the files back
unless the same content was uploaded again in the meantime.

Args:
    context_id: Context UUID to delete

Raises:
    400: If trying to delete default context
    403: If not context owner
    404: If context not found

## Path parameters

- `context_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/aa9df1a21db9?raw)
