Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Rabbitmq so I can reinstall

Tags:

rabbitmq

I was having trouble, so I went into the registry and removed the service entry for rabbitmq. Now when I try to reinstall it says it already exists but it doesn't start (since I removed it) and I can do a sc delete rabbitmq. How do I totally remove all traces of it and reinstall from scratch? I guess it exists somewhere and the registry entry is all that is gone and the install program says it us just updating it when I do the rabbitmq-service install. I tried rabbitmq-service remove but it says it doesn't exist.

like image 346
SDanks Avatar asked Sep 23 '16 15:09

SDanks


People also ask

How do I completely uninstall RabbitMQ?

Open the Windows Control Panel. Double-click Programs and Features. In the list of currently installed programs, right-click RabbitMQ Server, and then click Uninstall. In the list of currently installed programs, right-click Erlang OTP, and then click Uninstall.

How do I uninstall RabbitMQ Linux?

2. If it exists, complete the following steps to uninstall it: 1)Run the cd /usr/lib/netbrain/installer/rabbitmq command to navigate to the rabbitmq directory. 2)Run the ./uninstall.sh command under the rabbitmq directory.

Where is RabbitMQ installed?

Default Locations on Linux, macOS, BSD By default this is /usr/local. Debian and RPM package installations use an empty ${install_prefix}. Note that /usr/lib/rabbitmq/plugins is used only when RabbitMQ is installed into the standard (default) location.


2 Answers

I would suggest as follows:

sudo apt-get remove --auto-remove rabbitmq-server
sudo apt-get purge --auto-remove rabbitmq-server

It will uninstall rabbitmq and purge all data (users, vhost..)

like image 198
sashaboulouds Avatar answered Oct 10 '22 04:10

sashaboulouds


RabbitMQ writes the service information into HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ

To remove RabbitMQ manually you have to:

  • remove the key HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
  • remove the directory C:\Users\%USERNAME%\AppData\Roaming\RabbitMQ
  • remove the installation-folder.

Next time I suggest to use the rabbitmq-service.bat command to install and remove the service.

you have to execute it as administrator

like image 33
Gabriele Santomaggio Avatar answered Oct 10 '22 05:10

Gabriele Santomaggio