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

# Delete Sessions from Agent

Delete all sessions belonging to the authenticated user for a specified agent.

## Query Parameters

<ParamField query="agent_key" type="string" required>
  Agent key identifying the agent whose sessions will be removed.
</ParamField>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.artaios.ai/api/v1/sessions/from-agent/?agent_key=my_agent" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```
</CodeGroup>

## Response

Returns the number of deleted sessions.

```json theme={null}
{
  "deleted": 5
}
```
