How to uninstall 2.0

Hello, I like to fresh reinstall the 2.0, how to uninstall/delete the existing setup.

Thanks.

When you download InfluxDB, you get two programs; the database itself, influxd, and the CLI, influx, a well as a license file and a README.

InfluxDB 2.0 stores all of its data in ~/.influxdbv2; you can delete this directory to remove your data and configuration and start over.

If you want to completely uninstall the database and remove all of its data, you can delete the four files that came in the download as well as your ~/.influxdbv2 directory.

Hello Noah,

I’ve ran into an issue and am also wanting to start all over again from scratch. I’ve done rm -r ~/.influxdbv2 and removed all the files that came in the download, but mysteriously, I am still able to run influxd.

Run the following:
rm -rf /usr/local/bin/influx
rm -rf /usr/local/bin/influxd

These are the binaries that you computer run.

these commands was helpful for me on ubuntu 20.4:
sudo service influxdb stop
sudo apt remove influxdb
sudo apt remove influxdb-client
sudo apt remove influxdb2
sudo apt autoclean && sudo apt autoremove

sudo rm -rf /var/lib/influxdb/
sudo rm -rf /var/log/influxdb/
sudo rm -rf /etc/influxdb/
sudo rm -rf ~/.influxdbv2/configs

4 Likes

How can we use it in centos8?

sudo apt autoclean && sudo apt autoremove

Hello all.

On windows 11 I ran InfluxDB as a service using nssm and once I wanted to refresh influxDB installation I had to remove it doing the following steps:

1 - stop the service
2 - delete INFLUX.EXE* files from C:\Windows\Prefetch
3 - delete .influxdbv2 folder from C:\Windows\ServiceProfiles\NetworkService
4 - delete .influxdbv2 folder from C:\Windows\System32\config\systemprofile
5 - delete any .influxdbv2 folder from my user folders
6 - delete browser history
7 - restart windows

Regsards.

Giuliano.

1 Like