{
  "doc": {
    "id": "api/commands/clearallcookies",
    "title": "clearAllCookies | Cypress Documentation",
    "description": "Clear all browser cookies in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/clearallcookies.md",
    "version": "a8fd16711bdda4c7b5645b9717e588ae99ec2470",
    "updated_at": "2026-05-18T17:21:32.047Z",
    "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-learn-about-subject-management",
        "text": "Yields Learn about subject management",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/clearallcookies#requirements-learn-about-chaining-commands",
        "text": "Requirements Learn about chaining commands",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#assertions-learn-about-assertions",
        "text": "Assertions Learn about assertions",
        "level": 3
      },
      {
        "id": "api/commands/clearallcookies#timeouts-learn-about-timeouts",
        "text": "Timeouts Learn about 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 [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `cy.clearAllCookies()` yields `null`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/clearallcookies.json",
      "token_estimate": 113
    },
    {
      "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 [Learn about chaining commands](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Chains-of-Commands)\n\n*   `cy.clearAllCookies()` requires being chained off of `cy`.\n\n### Assertions [Learn about assertions](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Assertions)\n\n*   `cy.clearAllCookies()` cannot have any assertions chained.\n\n### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#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": 92
    },
    {
      "id": "api/commands/clearallcookies#timeouts-learn-about-timeouts",
      "doc_id": "api/commands/clearallcookies",
      "heading": "Timeouts Learn about timeouts",
      "heading_level": 3,
      "content_markdown": "### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#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-learn-about-timeouts"
      ],
      "path": "/llm/json/chunked/api/commands/clearallcookies.json",
      "token_estimate": 55
    }
  ]
}