# 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/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/sessions.py#L1202)