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

# Delete Context

> Delete a code execution context

```python theme={null}
from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")
ctx = client.runtime.create_context(runtime.runtime_id)

response = client.runtime.delete_context(runtime.runtime_id, ctx.context_id)
print(response.message)

runtime.kill()
```

## Parameters

| Parameter    | Type   | Required | Description        |
| ------------ | ------ | -------- | ------------------ |
| `runtime_id` | string | Yes      | Runtime identifier |
| `context_id` | string | Yes      | Context identifier |

## Response

| Field        | Type   | Description          |
| ------------ | ------ | -------------------- |
| `message`    | string | Confirmation message |
| `context_id` | string | Deleted context ID   |
