Flush database data (2024)

To delete the data in a database without deleting the database, you can use Redis CLI to flush it from the database. You can also use Redis CLI, the admin console, and the Redis Software REST API to flush data from Active-Active databases.

To delete the data in a database without deleting the database configuration,you can flush the data from the database.

You can use the Cluster Manager UI to flush data from Active-Active databases.

Warning:

The flush command deletes ALL in-memory and persistence data in the database.We recommend that you back up your database before you flush the data.

Flush data from a database

From the command line, you can flush a database with the redis-cli command or with your favorite Redis client.

To flush data from a database with the redis-cli, run:

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

Example:

Note:

Port 9443 is the default port configuration.

Flush data from an Active-Active database

When you flush an Active-Active database (formerly known as CRDB), all of the replicas flush their data at the same time.

To flush data from an Active-Active database:

  • Cluster Manager UI

    1. If you are using the new Cluster Manager UI, switch to the legacy admin console.

      Flush database data (1)
    2. Go to database and select the Active-Active database that you want to flush.

    3. Go to configuration and click Flush at the bottom of the page.

    4. Enter the name of the Active-Active database to confirm that you want to flush the data.

  • Command line

    1. To find the ID of the Active-Active database, run:

      crdb-cli crdb list

      For example:

      $ crdb-cli crdb listCRDB-GUID NAME REPL-ID CLUSTER-FQDNa16fe643-4a7b-4380-a5b2-96109d2e8bca crdb1 1 cluster1.locala16fe643-4a7b-4380-a5b2-96109d2e8bca crdb1 2 cluster2.locala16fe643-4a7b-4380-a5b2-96109d2e8bca crdb1 3 cluster3.local
    2. To flush the Active-Active database, run:

      crdb-cli crdb flush --crdb-guid <CRDB-GUID>

      The command output contains the task ID of the flush task, for example:

      $ crdb-cli crdb flush --crdb-guid a16fe643-4a7b-4380-a5b2-96109d2e8bcaTask 63239280-d060-4639-9bba-fc6a242c19fc created---> Status changed: queued -> started
    3. To check the status of the flush task, run:

      crdb-cli task status --task-id <Task-ID>

      For example:

      $ crdb-cli task status --task-id 63239280-d060-4639-9bba-fc6a242c19fcTask-ID: 63239280-d060-4639-9bba-fc6a242c19fcCRDB-GUID: -Status: finished
  • REST API

    1. To find the ID of the Active-Active database, use GET /v1/crdbs:

      GET https://[host][:port]/v1/crdbs
    2. To flush the Active-Active database, use PUT /v1/crdbs/{guid}/flush:

      PUT https://[host][:port]/v1/crdbs/<guid>/flush

      The command output contains the task ID of the flush task.

    3. To check the status of the flush task, use GET /v1/crdb_tasks:

      GET https://[host][:port]/v1/crdb_tasks/<task-id>
Flush database data (2024)
Top Articles
How to Import Data from CSV in React.js
Employment expenses: travel
Creepshotorg
It’s Time to Answer Your Questions About Super Bowl LVII (Published 2023)
Nybe Business Id
4-Hour Private ATV Riding Experience in Adirondacks 2024 on Cool Destinations
Le Blanc Los Cabos - Los Cabos – Le Blanc Spa Resort Adults-Only All Inclusive
Room Background For Zepeto
Professor Qwertyson
Es.cvs.com/Otchs/Devoted
Osrs Blessed Axe
Slag bij Plataeae tussen de Grieken en de Perzen
Things To Do In Atlanta Tomorrow Night
Think Up Elar Level 5 Answer Key Pdf
Craigslist Deming
Flower Mound Clavicle Trauma
Aberration Surface Entrances
Define Percosivism
Best Forensic Pathology Careers + Salary Outlook | HealthGrad
Webcentral Cuny
24 Hour Drive Thru Car Wash Near Me
St. Petersburg, FL - Bombay. Meet Malia a Pet for Adoption - AdoptaPet.com
Nevermore: What Doesn't Kill
Aldi Bruce B Downs
Helpers Needed At Once Bug Fables
Student Portal Stvt
Calvin Coolidge: Life in Brief | Miller Center
What Is The Lineup For Nascar Race Today
Why Are The French So Google Feud Answers
Autotrader Bmw X5
Workboy Kennel
Rust Belt Revival Auctions
#scandalous stars | astrognossienne
How to Draw a Sailboat: 7 Steps (with Pictures) - wikiHow
Mvnt Merchant Services
Has any non-Muslim here who read the Quran and unironically ENJOYED it?
Citibank Branch Locations In Orlando Florida
Cpmc Mission Bernal Campus & Orthopedic Institute Photos
The Conners Season 5 Wiki
The Attleboro Sun Chronicle Obituaries
The power of the NFL, its data, and the shift to CTV
Yale College Confidential 2027
The Horn Of Plenty Figgerits
Embry Riddle Prescott Academic Calendar
Professors Helpers Abbreviation
15 Best Places to Visit in the Northeast During Summer
How to Connect Jabra Earbuds to an iPhone | Decortweaks
Gander Mountain Mastercard Login
Enter The Gungeon Gunther
Www.homedepot .Com
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 5638

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.