# delete_thread

> **Function** in `deepagents_code`

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

Delete thread checkpoints.

## Signature

```python
delete_thread(
    thread_id: str,
) -> bool
```

## Returns

`bool`

True if thread was deleted, False if not found.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/sessions.py#L1383)