---
title: "Clear browser storage"
method: DELETE
path: "/v1/browser/storage"
tags: ["Browser"]
---

# Clear browser storage

`DELETE /v1/browser/storage`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/browser/storage`
- Auth: HTTP bearer

Clears cookies, localStorage, and/or sessionStorage. Pass `types`
in the request body to limit which types are cleared; omit to clear all.

## Request body

- object
  - `types` string[]: Storage types to clear (e.g. ["cookies", "localStorage"]). Omit to clear all.

## Response `200`

Cleared storage types

- StorageClearResult
  - `cleared` string[], required: List of storage types that were cleared

## Other responses

- `409`: Not connected to a browser
- `502`: CDP error
- `503`: Browser service not initialized

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
