api-docs/docs/browser-tracker/markdown/browser-tracker.clearuserdata.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [clearUserData](./browser-tracker.clearuserdata.md)
## clearUserData() function
Clears all cookies and local storage containing user and session identifiers
<b>Signature:</b>
```typescript
declare function clearUserData(configuration?: ClearUserDataConfiguration, trackers?: Array<string>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| configuration | ClearUserDataConfiguration | |
| trackers | Array<string> | The tracker identifiers which the event will be sent to |
<b>Returns:</b>
void