Command Type
Command Type ID: 15Parameters
| 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
Clear Only Cookies for a Specific Domain
Related Commands
- Override Headers - Override request headers after clearing
- Browser Open - Open a fresh browser session