Uninstall NeuronEX
NeuronEX supports multiple installation methods. The uninstall steps depend on how you installed it. It is recommended to stop NeuronEX before uninstalling.
Uninstall the .tar.gz installation
Only extracted and running (no systemd service registration)
If you only extracted the package and ran NeuronEX via ./bin/neuronex start, uninstalling mainly means deleting the extracted directory.
# Stop (if started from the extracted directory)
./bin/neuronex stop
# Delete extracted directory
rm -rf ./neuronex-<x.y.z>-linux-<arch>systemd services have been registered
If you executed ./bin/neuronex install to register NeuronEX as a systemd service, cancel the registration before deleting the directory:
# Unregister systemd service
./bin/neuronex uninstall
# Delete installation directory
rm -rf /opt/neuronex
# If you used the one-click installer (tar.gz default creates a symlink), remove the link too
rm -f /usr/local/bin/neuronexUninstall the deb package (Ubuntu/Debian)
Stop the service first (if installed as a systemd service):
sudo systemctl stop neuronex || trueUninstall while keeping configuration, log, and data files:
sudo dpkg -r neuronexUninstall and remove all files:
sudo dpkg -P neuronexUninstall the rpm package (CentOS/RHEL)
Stop the service first (if installed as a systemd service):
sudo systemctl stop neuronex || trueUninstall NeuronEX:
sudo rpm -e neuronexIf your system uses dnf/yum, you can also uninstall via the package manager:
sudo dnf remove -y neuronex
# or
sudo yum remove -y neuronexUninstall the Docker deployment
Uninstalling the Docker deployment generally includes stopping the container and removing it. Deleting the image is optional.
# Stop the container
docker stop neuronex || true
# Remove the container
docker rm neuronex || trueOptionally remove the image:
docker rmi emqx/neuronex:<tag>If you started the container with -v bind mounts, removing the container will not delete the host data. Clean up the corresponding directories on the host manually if needed.