crdb-cli crdb flush
Clears all keys from an Active-Active database.
| Redis Software |
|---|
Clears all keys from an Active-Active database.
crdb-cli crdb flush --crdb-guid <guid>
[ --no-wait ]
This command is irreversible. If the data in your database is important, back it up before you flush the database.
Run flush from only one participating cluster. The flush operation propagates to all other clusters automatically.
Parameters
| Parameter | Value | Description |
|---|---|---|
| crdb-guid | string | The GUID of the database (required) |
| no-wait | Does not wait for the task to complete |
Returns
Returns the task ID of the task clearing the database.
If --no-wait is specified, the command exits. Otherwise, it will wait for the database to be cleared and return finished.
Example
$ crdb-cli crdb flush --crdb-guid d84f6fe4-5bb7-49d2-a188-8900e09c6f66
Task 53cdc59e-ecf5-4564-a8dd-448d71f9e568 created
---> Status changed: queued -> started
---> Status changed: started -> finished