# delete_thread_command

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/sessions/delete_thread_command)

CLI handler for: deepagents threads delete.

## Signature

```python
delete_thread_command(
    thread_id: str,
    *,
    dry_run: bool = False,
    output_format: OutputFormat = 'text',
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | `str` | Yes | ID of the thread to delete. |
| `dry_run` | `bool` | No | If `True`, print what would happen without making changes. (default: `False`) |
| `output_format` | `OutputFormat` | No | Output format — `'text'` (Rich) or `'json'`. (default: `'text'`) |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/bb27e62ebe44dd6e8104a504b1718ce87acc7ffa/libs/cli/deepagents_cli/sessions.py#L1206)