Skip to content

Redis data clearing operations

Redis provides specific commands to manage the lifecycle and persistence of data stored in its memory-based structures^[600-developer-redis.md].

Clearing Commands

To remove data from the Redis database, the following commands are available:

  • FLUSHALL: Used to remove all data from every existing database^[600-developer-redis.md].
  • FLUSHDB: Used to clear the currently selected database only^[600-developer-redis.md].
  • [[Redis]]
  • [[Data persistence]]

Sources

^[600-developer-redis.md]