> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/data/delete-localstorage.md).

# Delete LocalStorage

Delete LocalStorage removes one key from browser `localStorage`. Use it to clear client-side state before the application reads it again.

![Delete localStorage Test Step](https://app.does.qa/screenshots/node/data_localStorage_delete.png)

## When to use it

* Remove a stale preference or flag before reloading the page.
* Reset known test data set by an earlier [Set LocalStorage](/test-steps/data/set-localstorage.md) step.
* Prefer [Delete All LocalStorage](/test-steps/data/delete-all-localstorage.md) when every key should be cleared.

## Configure

### Basics

| Field                | What to set                       |
| -------------------- | --------------------------------- |
| **localStorage Key** | Key to remove from `localStorage` |

### Advanced

| Field              | What to set                                          |
| ------------------ | ---------------------------------------------------- |
| **Status on fail** | [Failed Status](/test-step-options/failed-status.md) |

## Related

* [Delete All LocalStorage](/test-steps/data/delete-all-localstorage.md)
* [Set LocalStorage](/test-steps/data/set-localstorage.md)
* [Store LocalStorage](/test-steps/data/store-localstorage.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `localStorage`, `delete`
