Skip to main content

Uninstalling Redis (All Methods)

Uninstalling on Linux/Ubuntu​

  • If installation is done via apt package manager:
sudo systemctl stop redis
sudo apt-get purge --auto-remove redis-server
sudo rm -rf /etc/redis /var/lib/redis
  • If installed via source (compiled manually):
sudo systemctl stop redis
sudo rm /usr/local/bin/redis-server /usr/local/bin/redis-cli
sudo rm -rf /etc/redis /var/lib/redis /usr/local/etc/redis.conf
note

If you're not sure, run which redis-server to see where it's installed.

Uninstalling on macOS (Homebrew)​

brew services stop redis
brew uninstall redis

To remove any leftover files:

rm -rf /usr/local/var/db/redis
rm -f /usr/local/etc/redis.conf

Uninstalling on Windows​

If installed via Redis MSI installer or Redis Stack:

  • Open Services and stop the Redis service.

  • Go to Control Panel → Programs → Uninstall a Program, find Redis and uninstall it.

  • Manually delete leftover files

note

Redis on Windows is not officially supported. If you're using WSL, use Linux commands above.

Uninstalling on Docker​

Find docker container for Redis

docker ps

Stop Docker Container

docker stop redis

Remove Docker Container

docker rm redis

Remove Redis Image

docker rmi redis