# logout

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/integrations/openai_codex/logout)

Delete the stored ChatGPT OAuth token.

## Signature

```python
logout(
    *,
    store_path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `store_path` | `Path \| None` | No | Override the token store path. (default: `None`) |

## Returns

`bool`

`True` if a token file was removed, `False` if no file existed.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/integrations/openai_codex.py#L198)