# anonymize

Learn how to disassociate the session from the current user.

This method clears the ID of the currently identified user.

The SDK automatically emits a [`userSignedOut`](/reference/event/types/user-account/user-signed-out) event. As a result, the current session is terminated and a new session is started.

Calling this method has no effect if the user is already anonymous.

## Signature

This method has the following signature:

```ts
croct.anonymize(): void
```

## Example

Here is a basic example of how to use this method:

```ts
import croct from '@croct/plug';

croct.anonymize();

console.log(croct.isAnonymous()); // true
```
