> 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-cookie.md).

# Delete Cookie

Delete Cookie removes one named cookie from the browser. Use it to reset session state or clear a cookie before the next step runs.

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

## When to use it

* Remove a session cookie to simulate logout before a login Flow.
* Clear a tracking or consent cookie before asserting default behaviour.
* Prefer [Delete Cookies](/test-steps/data/delete-cookies.md) when every cookie on the page should be removed.

## Configure

### Basics

| Field           | What to set                  |
| --------------- | ---------------------------- |
| **Cookie Name** | Name of the cookie to delete |

### Advanced

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

## Related

* [Delete Cookies](/test-steps/data/delete-cookies.md)
* [Set Cookie](/test-steps/data/set-cookie.md)
* [Store Cookie](/test-steps/data/store-cookie.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `cookie`, `delete`
