> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeotap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove User Identities

> Clear user identities from storage.

<Warning>
  **Important:** Please ensure your CMP configuration includes new **Vendor ID 1469** for 1st Party data tracking. Additionally, include **Vendor ID 301** if cookie sync is enabled. [Learn more](/articles/sdks/web-js/configurations/consent-options#shouldcheckzeotapvendorconsent)
</Warning>

The `unSetUserIdentities` method removes user identities that were set using the `setUserIdentities` method.

## Syntax

```swift theme={null}
Collect.getInstance()?.unSetUserIdentities()
```

## Usage Example

```swift theme={null}
// Clear user identities on logout
func handleLogout() {
    Collect.getInstance()?.unSetUserIdentities()
    print("User identities cleared")
}
```

## Related Methods

* [setUserIdentities](/articles/sdks/ios/api-reference/set-user-identities) - Set user identities
