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

# Clear Browsing Data

> Remove specified types of browsing data from the browser

The Clear Browsing Data command (Command Type: 15) removes specified types of browsing data (cookies, cache, localStorage, etc.) from the browser with granular control over what is cleared.

## Command Type

**Command Type ID:** 15

## Parameters

| Parameter          | Type                        | Description                                 | Required |
| ------------------ | --------------------------- | ------------------------------------------- | -------- |
| **dataTypes**      | BrowsingData.DataTypeSet    | The types of data to clear                  | Yes      |
| **removalOptions** | BrowsingData.RemovalOptions | Options controlling what exactly is removed | Yes      |
| **timeout**        | number                      | Timeout in milliseconds                     | Yes      |

### DataTypeSet Fields (all optional booleans)

| Field            | Description              |
| ---------------- | ------------------------ |
| `cache`          | The browser's cache      |
| `cookies`        | Browser cookies          |
| `downloads`      | Download list            |
| `formData`       | Stored form data         |
| `history`        | Browsing history         |
| `indexedDB`      | Websites' IndexedDB data |
| `localStorage`   | Websites' local storage  |
| `passwords`      | Stored passwords         |
| `serviceWorkers` | Service Workers          |

### RemovalOptions Fields

| Field           | Type             | Description                                              |
| --------------- | ---------------- | -------------------------------------------------------- |
| `cookieStoreId` | string           | Only remove data for this cookie store                   |
| `hostnames`     | Array of string  | Only remove data for these hostnames                     |
| `since`         | number or string | Remove data accumulated on or after this date (epoch ms) |

## Usage Examples

### Clear Cookies and Cache

```json theme={null}
{
  "command": "clear-browsing-data",
  "params": {
    "dataTypes": { "cookies": true, "cache": true },
    "removalOptions": {},
    "timeout": 10000
  }
}
```

### Clear Only Cookies for a Specific Domain

```json theme={null}
{
  "command": "clear-browsing-data",
  "params": {
    "dataTypes": { "cookies": true },
    "removalOptions": { "hostnames": ["example.com"] },
    "timeout": 10000
  }
}
```

## Related Commands

* [Override Headers](/stream/commands/browser/override-headers) - Override request headers after clearing
* [Browser Open](/stream/commands/browser/browser-open) - Open a fresh browser session
