{
  "doc": {
    "id": "api/commands/clearallsessionstorage",
    "title": "clearAllSessionStorage | Cypress Documentation",
    "description": "Clear all session storage data in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/clearallsessionstorage.md",
    "version": "24a73f8a97175663aaffd3b016289fb2a523a4ea",
    "updated_at": "2026-05-14T20:17:33.301Z",
    "headings": [
      {
        "id": "api/commands/clearallsessionstorage#clearallsessionstorage",
        "text": "clearAllSessionStorage",
        "level": 1
      },
      {
        "id": "api/commands/clearallsessionstorage#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/clearallsessionstorage#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/clearallsessionstorage#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/clearallsessionstorage#yields-learn-about-subject-management",
        "text": "Yields Learn about subject management",
        "level": 3
      },
      {
        "id": "api/commands/clearallsessionstorage#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/clearallsessionstorage#requirements-learn-about-chaining-commands",
        "text": "Requirements Learn about chaining commands",
        "level": 3
      },
      {
        "id": "api/commands/clearallsessionstorage#assertions-learn-about-assertions",
        "text": "Assertions Learn about assertions",
        "level": 3
      },
      {
        "id": "api/commands/clearallsessionstorage#timeouts-learn-about-timeouts",
        "text": "Timeouts Learn about timeouts",
        "level": 3
      },
      {
        "id": "api/commands/clearallsessionstorage#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/clearallsessionstorage#syntax",
      "doc_id": "api/commands/clearallsessionstorage",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\ncy.clearAllSessionStorage()cy.clearAllSessionStorage(options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.clearAllSessionStorage()\n```\n\n### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `cy.clearAllSessionStorage()`.\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 [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `cy.clearAllSessionStorage()` yields `null`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/clearallsessionstorage.json",
      "token_estimate": 87
    },
    {
      "id": "api/commands/clearallsessionstorage#arguments",
      "doc_id": "api/commands/clearallsessionstorage",
      "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.clearAllSessionStorage()`.\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/clearallsessionstorage.json",
      "token_estimate": 57
    },
    {
      "id": "api/commands/clearallsessionstorage#rules",
      "doc_id": "api/commands/clearallsessionstorage",
      "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.clearAllSessionStorage()` 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.clearAllSessionStorage()` cannot have any assertions chained.\n\n### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `cy.clearAllSessionStorage()` cannot time out.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/clearallsessionstorage.json",
      "token_estimate": 49
    }
  ]
}