Redis Server: FLUSHALL
Redis FLUSHALL Command
Redis FLUSHALL command is used to delete all the keys of all the existing databases, not just the currently selected one. This command never fails.
Here are some common uses and scenarios for the "FLUSHALL" command:
- Database Clearing: Removes all keys from all databases, effectively clearing all data in the Redis instance.
- Testing and Development: Useful for resetting the Redis instance during testing or development to start with a clean slate.
- Data Purge: Provides a way to quickly purge all data from Redis when it is no longer needed or for data cleanup operations.
- System Maintenance: Facilitates maintenance tasks that require a complete removal of all stored data.
Syntax:
FLUSHALL
Available since
1.0.0.
Return Value
String reply.
Return Value Type
String
Example: Redis FLUSHALL
redis 127.0.0.1:6379> FLUSHALL OK
Previous:
DEBUG SEGFAULT
Next:
FLUSHDB
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://www.w3resource.com/redis/redis-server-flushall.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics