# Anonymize Users

**Previously identified users of your application can be anonymized by calling zipy.anonymize()** m**ethod. This will automatically split the session and associate the new session with a new anonymous user which Zipy will identify with its own identification. This method should typically be called when users sign out of your application.**

**Example Usage:**

**1.  Usage after installing Zipy via the script tag method:**

In case you chose to install Zipy in your app with the script tag method, to anonymize a previously identified user of your application, use the following code in a source file where users sign out of your application:

<pre class="language-generic"><code class="lang-generic"><strong>window.zipy.anonymize()
</strong></code></pre>

**2.  Usage after installing Zipy via the npm method:**

In case you chose to install Zipy in your app with the npm method, to anonymize a previously identified user of your application, use the following code in a source file where users sign out of your application:

```generic
import zipy from "zipyai";
zipy.anonymize();    
```


---

# 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.zipy.ai/configure/anonymize-users.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.
