> For the complete documentation index, see [llms.txt](https://oswaldai.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oswaldai.gitbook.io/docs/integration-api/forget-session-data.md).

# Forget session data

The European GDPR law (General Data Protection Regulation) specifies the 'right to be forgotten' rule, which means that all the data generated by the user has to be deleteable and forgotten by Oswald. We provide this functionality through a 'forget session' endpoint where all session related data such as messages and metadata is deleted.

The `POST` endpoint for this functionality is:

```
/chats/forgetMe/{sessionId}?access_token={access_token}
```

Remember that calling this endpoint deletes all session related data from the database which might affect your statistics.
