Documentation - Redise Cloud

A guide to Redise Cloud operation and administration

open all | close all

Using flushall on Redise Cloud

There are times where you want to flush all database data. In previous versions of Redise Cloud, there was a button to perform this for you in the web UI. As more and more people use Redise Cloud for their authoritative database, keeping that data safe is even more critical. So this risky operation was removed from the web UI.

flushall for Redise Cloud Databases

If you would still like to perform this operation on your database, you can, but it is from the command line using the redis-cli command or from your favorite Redis client.

Here is how to do it using redis-cli:

redis-cli -h -p -a flushall

Example:

redis-cli -h redis-12345.c24.us-east-mz-1.ec2.cloud.redislabs.com -p 12345 -a xyz flushall

Remember that this will delete ALL of the data in the database. This includes all data in memory and persisted to disk. So before doing flushall, it is best practice to backup your database first.


Previous
Next