# Clear session

<figure><img src="https://1449034948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_NpOsk0sjotPXNy29Q%2Fuploads%2FauuBJ7Hgkz6jtkFqtKYx%2Fdelete-session-node.svg?alt=media&#x26;token=ff0646b8-6e5e-4ed2-b3f4-7db124c9f76b" alt="Clear Session Node" width="188"><figcaption></figcaption></figure>

The clear session node is used to delete the current session and all related states (temporary data, flowchart stack, view state, comet listeners, et cetera). When a session is cleared, it will redirect you to the home page where it will create a new empty session. You can also specify another navigation item to return to.&#x20;

![Properties of the ](https://1449034948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_NpOsk0sjotPXNy29Q%2Fuploads%2FRcSrbQ53fmLFWC7wg7aS%2FFlowchart-clear%20session%20poperties.png?alt=media\&token=5334cf07-3899-44d8-8533-2c1e2781279a)

The clear session node is an important safety measure that should, for example, be used in a log-out flowchart. This will make the logout permanent and prevents someone from returning to a logged in session by using the browsers back button. &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wem.io/platform/wemmodeler/flowcharts/clear-session.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
