{
  "doc": {
    "id": "api/commands/clearalllocalstorage",
    "title": "cy.clearAllLocalStorage()",
    "description": "Clear all localStorage data in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/clearalllocalstorage.md",
    "version": "fbc9225067c51c52ee13224e3b702cf8a025ec12",
    "updated_at": "2026-08-14T12:36:26.878Z",
    "headings": [
      {
        "id": "api/commands/clearalllocalstorage#clearalllocalstorage",
        "text": "clearAllLocalStorage",
        "level": 1
      },
      {
        "id": "api/commands/clearalllocalstorage#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/clearalllocalstorage#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/clearalllocalstorage#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/clearalllocalstorage#yields",
        "text": "Yields",
        "level": 3
      },
      {
        "id": "api/commands/clearalllocalstorage#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/clearalllocalstorage#requirements",
        "text": "Requirements",
        "level": 3
      },
      {
        "id": "api/commands/clearalllocalstorage#assertions",
        "text": "Assertions",
        "level": 3
      },
      {
        "id": "api/commands/clearalllocalstorage#timeouts",
        "text": "Timeouts",
        "level": 3
      },
      {
        "id": "api/commands/clearalllocalstorage#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/clearalllocalstorage#syntax",
      "doc_id": "api/commands/clearalllocalstorage",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\ncy.clearAllLocalStorage()cy.clearAllLocalStorage(options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.clearAllLocalStorage()\n```\n\n### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `cy.clearAllLocalStorage()`.\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\n### Yields\n\n*   `cy.clearAllLocalStorage()` yields `null`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/clearalllocalstorage.json",
      "token_estimate": 81
    },
    {
      "id": "api/commands/clearalllocalstorage#arguments",
      "doc_id": "api/commands/clearalllocalstorage",
      "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.clearAllLocalStorage()`.\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",
      "section": "api",
      "anchors": [
        "arguments"
      ],
      "path": "/llm/json/chunked/api/commands/clearalllocalstorage.json",
      "token_estimate": 57
    }
  ]
}