Saturday, February 26, 2022

[SOLVED] Does uninstalling Redis clear its memory data?

Issue

I am on CentOS 7 and I uninstall Redis by doing yum remove redis.

How can I be sure that the memory is cleared?


Solution

Before un-installing redis. Clear all keys from redis and shutdown redis-server using redis-cli:

redis-cli> FLUSHALL
redis-cli> SHUTDOWN

https://redis.io/commands/flushall

This will clean up all data from redis to release the memory

You can uninstall redis once cleanup is done and the redis process is stopped:

yum remove redis



Answered By - Atish
Answer Checked By - Candace Johnson (WPSolving Volunteer)