{
  "schema_version": 2,
  "id": "operate/rs/references/cli-utilities/crdb-cli/crdb/flush",
  "title": "crdb-cli crdb flush",
  "url": "https://redis.io/docs/latest/operate/rs/references/cli-utilities/crdb-cli/crdb/flush/",
  "summary": "Clears all keys from an Active-Active database.",
  "tags": [
    "docs",
    "operate",
    "rs"
  ],
  "last_updated": "2026-04-24T09:17:44-05:00",
  "page_type": "content",
  "content_hash": "3c1cf2bfa9c5f5b8461e65864b46312af137877606af7a6dcde98aa965a7ec92",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Clears all keys from an Active-Active database.\n\n[code example]\n\nThis command is irreversible. If the data in your database is important, back it up before you flush the database.\n\nRun flush from only one participating cluster. The flush operation propagates to all other clusters automatically."
    },
    {
      "id": "parameters",
      "title": "Parameters",
      "role": "parameters",
      "text": "| Parameter           | Value  | Description                         |\n|---------------------|--------|-------------------------------------|\n| crdb-guid  | string | The GUID of the database (required) |\n| no-wait             |        | Does not wait for the task to complete |"
    },
    {
      "id": "returns",
      "title": "Returns",
      "role": "returns",
      "text": "Returns the task ID of the task clearing the database.\n\nIf `--no-wait` is specified, the command exits. Otherwise, it will wait for the database to be cleared and return `finished`."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "overview-ex0",
      "language": "sh",
      "code": "crdb-cli crdb flush --crdb-guid <guid>\n         [ --no-wait ]",
      "section_id": "overview"
    },
    {
      "id": "example-ex0",
      "language": "sh",
      "code": "$ crdb-cli crdb flush --crdb-guid d84f6fe4-5bb7-49d2-a188-8900e09c6f66\nTask 53cdc59e-ecf5-4564-a8dd-448d71f9e568 created\n  ---> Status changed: queued -> started\n  ---> Status changed: started -> finished",
      "section_id": "example"
    }
  ]
}
