{
  "id": "flush",
  "title": "crdb-cli crdb flush",
  "url": "https://redis.io/docs/latest/operate/rs/8.0/references/cli-utilities/crdb-cli/crdb/flush/",
  "summary": "Clears all keys from an Active-Active database.",
  "content": "\nClears all keys from an Active-Active database.\n\n```sh\ncrdb-cli crdb flush --crdb-guid \u003cguid\u003e\n         [ --no-wait ]\n```\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.\n\n### Parameters\n\n| 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 |\n\n### Returns\n\nReturns 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`.\n\n### Example\n\n```sh\n$ crdb-cli crdb flush --crdb-guid d84f6fe4-5bb7-49d2-a188-8900e09c6f66\nTask 53cdc59e-ecf5-4564-a8dd-448d71f9e568 created\n  ---\u003e Status changed: queued -\u003e started\n  ---\u003e Status changed: started -\u003e finished\n```\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-07-23T12:05:56-05:00"
}
