Flush data (2024)

The FLUSHALL command provides a fast way to remove all data from a database.

Note:

When you flush a database, you remove all data.

This permanently removes all data from the database. The data cannot be recovered, except by restoring from earlier backups.

We strongly recommend backing up databases before flushing them.

How to use FLUSHALL

To use it, connect your database and then issue the command.

There are several ways to do this, depending on your circ*mstances and environment.

The following sections provide some options:

  • redis-cli
  • Redis Insight CLI
  • SASL connection

redis-cli

To use the redis-cli utility:

redis-cli -h <hostname> -p <portnumber> -a <password> flushall

Example:

redis-cli -h redis-12345.server.cloud.redislabs.example.com -p 12345 -a xyz flushall

Redis Insight

If you install Redis Insight and add your database, you can use the Redis Insight workbench to run commands:

  1. Start Redis Insight and connect to your database.

  2. From the Redis Insight menu, select Workbench and wait for the client to connect to your database.

  3. In the command area, enter flushall and then select the green run arrow.

    Flush data (1)

    The 'OK' response indicates that the command executed properly.

SASL connection

If you do not have permission to access the command shell of the server hosting your database or are unable to use Redis Insight, but you have connection credentials and your database supports Simple Authentication and Security Layer connections, you can use an SASL-enabled command-line client.

For example, suppose you're using Memcached Enterprise Cloud and that your database has SASL enabled. In this case, you can can use the bmemcached-CLI client to connect and issue commands to your database.

Setup instructions vary according to the environment. Many Linux systems, such as Ubuntu, follow this process:

$ wget https://github.com/RedisLabs/bmemcached-cli/archive/master.zip$ sudo apt-get install unzip python-pip$ unzip master.zip -d bmemcached-cli$ cd bmemcached-cli/bmemcached-cli-master/$ sudo pip install --upgrade pip$ sudo pip install . -r requirements.pip

Adjust as needed for your operating system and configuration.

When the client is properly installed, you can use it to run the flush_all command:

bmemcached-cli [user]:[password]@[host]:[port]

Here's an example:

$ bmemcached-cli username:password@redis-12345.server.cloud.redislabs.example.com:12345([B]memcached) flush_allTrueexit
Flush data (2024)
Top Articles
Unveiling the Secrets of Helium Mobile Token Mining: A Comprehensive Guide to Earning the Most…
Can a worm cut in half sense anything?
Evil Dead Movies In Order & Timeline
No Hard Feelings (2023) Tickets & Showtimes
Avonlea Havanese
Western Union Mexico Rate
Brgeneral Patient Portal
877-668-5260 | 18776685260 - Robocaller Warning!
DENVER Überwachungskamera IOC-221, IP, WLAN, außen | 580950
Konkurrenz für Kioske: 7-Eleven will Minisupermärkte in Deutschland etablieren
Pj Ferry Schedule
World of White Sturgeon Caviar: Origins, Taste & Culinary Uses
Luciipurrrr_
Simon Montefiore artikelen kopen? Alle artikelen online
What Happened To Anna Citron Lansky
Carolina Aguilar Facebook
Arre St Wv Srj
Uta Kinesiology Advising
Craigslist Personals Jonesboro
Exl8000 Generator Battery
Betaalbaar naar The Big Apple: 9 x tips voor New York City
Jordan Poyer Wiki
Drying Cloths At A Hammam Crossword Clue
Craigslist Pasco Kennewick Richland Washington
Ou Football Brainiacs
Cor Triatriatum: Background, Pathophysiology, Epidemiology
2015 Kia Soul Serpentine Belt Diagram
Gillette Craigslist
Guinness World Record For Longest Imessage
Uno Fall 2023 Calendar
Mercedes W204 Belt Diagram
A Plus Nails Stewartville Mn
Matlab Kruskal Wallis
Gas Prices In Henderson Kentucky
All Things Algebra Unit 3 Homework 2 Answer Key
Flashscore.com Live Football Scores Livescore
Collier Urgent Care Park Shore
Kelly Ripa Necklace 2022
11301 Lakeline Blvd Parkline Plaza Ctr Ste 150
Wrigley Rooftops Promo Code
Fwpd Activity Log
Gregory (Five Nights at Freddy's)
Craigslist Antique
3367164101
Lightfoot 247
Steam Input Per Game Setting
French Linen krijtverf van Annie Sloan
Westport gun shops close after confusion over governor's 'essential' business list
Www Ventusky
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Códigos SWIFT/BIC para bancos de USA
Cbs Scores Mlb
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 6548

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.