# 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();    
```
