{
  "doc": {
    "id": "api/commands/clearallcookies",
    "title": "cy.clearAllCookies()",
    "description": "Clear all browser cookies in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/clearallcookies.md",
    "version": "e6c8d867c21227247f14714fb5690c7c018983c5",
    "updated_at": "2026-08-08T12:39:37.868Z",
    "headings": [
      {
        "id": "api/commands/clearallcookies#clearallcookies",
        "text": "clearAllCookies",
        "level": 1
      },
      {
        "id": "api/commands/clearallcookies#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/clearallcookies#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#yields",
        "text": "Yields",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/clearallcookies#requirements",
        "text": "Requirements",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#assertions",
        "text": "Assertions",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#timeouts",
        "text": "Timeouts",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/clearallcookies#syntax",
      "doc_id": "api/commands/clearallcookies",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\ncy.clearAllCookies()cy.clearAllCookies(options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.clearAllCookies() // Clear all cookies\n```\n\n### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `cy.clearAllCookies()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n| `timeout` | [`responseTimeout`](/llm/markdown/app/references/configuration.md#Timeouts) | Time to wait for `cy.clearAllCookies()` to resolve before [timing out](#Timeouts) |\n\n### Yields\n\n*   `cy.clearAllCookies()` yields `null`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/clearallcookies.json",
      "token_estimate": 108
    },
    {
      "id": "api/commands/clearallcookies#arguments",
      "doc_id": "api/commands/clearallcookies",
      "heading": "Arguments",
      "heading_level": 3,
      "content_markdown": "### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `cy.clearAllCookies()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n| `timeout` | [`responseTimeout`](/llm/markdown/app/references/configuration.md#Timeouts) | Time to wait for `cy.clearAllCookies()` to resolve before [timing out](#Timeouts) |\n",
      "section": "api",
      "anchors": [
        "arguments"
      ],
      "path": "/llm/json/chunked/api/commands/clearallcookies.json",
      "token_estimate": 79
    },
    {
      "id": "api/commands/clearallcookies#rules",
      "doc_id": "api/commands/clearallcookies",
      "heading": "Rules",
      "heading_level": 2,
      "content_markdown": "## Rules\n\n### Requirements\n\n*   `cy.clearAllCookies()` requires being chained off of `cy`.\n\n### Assertions\n\n*   `cy.clearAllCookies()` cannot have any assertions chained.\n\n### Timeouts\n\n*   `cy.clearAllCookies()` should never time out.\n\nBecause `cy.clearAllCookies()` is asynchronous it is technically possible for there to be a timeout while talking to the internal Cypress automation APIs. But for practical purposes it should never happen.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/clearallcookies.json",
      "token_estimate": 79
    },
    {
      "id": "api/commands/clearallcookies#timeouts",
      "doc_id": "api/commands/clearallcookies",
      "heading": "Timeouts",
      "heading_level": 3,
      "content_markdown": "### Timeouts\n\n*   `cy.clearAllCookies()` should never time out.\n\nBecause `cy.clearAllCookies()` is asynchronous it is technically possible for there to be a timeout while talking to the internal Cypress automation APIs. But for practical purposes it should never happen.\n",
      "section": "api",
      "anchors": [
        "timeouts"
      ],
      "path": "/llm/json/chunked/api/commands/clearallcookies.json",
      "token_estimate": 51
    }
  ]
}