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

# motus serve delete

> Delete a session on a running Motus agent server.

Delete a session. This maps directly to `DELETE /sessions/{id}` described in the [Sessions API reference](/reference/api/sessions).

## Usage

```bash theme={null}
motus serve delete <url> <id>
```

<Note>
  It is safe to delete a session while a turn is running. The running task is cancelled and the worker process is killed immediately.
</Note>

## Examples

### Delete a session

```bash theme={null}
motus serve delete http://localhost:8000 550e8400-e29b-41d4-a716-446655440000
Deleted session 550e8400-e29b-41d4-a716-446655440000
```
