> ## 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 File

> Delete files or directories in an agent runtime

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

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

# Create the file first so we have something to delete
runtime.file.write("/workspace/temp.txt", "temporary\n")

response = runtime.file.delete("/workspace/temp.txt")
print(response.message)

runtime.kill()
```

## Parameters

| Parameter | Type   | Required | Description            |
| --------- | ------ | -------- | ---------------------- |
| `path`    | string | Yes      | File or directory path |

## Response

| Field     | Type   | Description          |
| --------- | ------ | -------------------- |
| `message` | string | Confirmation message |
| `path`    | string | Deleted path         |
