Problem with InfluxDB

Hi to all

I have a problem with installing InfluxDB.
During installation, it prompts that “admin” user already exists.

openhabian@openhab:/ $ influx
Connected to http://localhost:8086 version 1.8.10
InfluxDB shell version: 1.8.10
> CREATE DATABASE openhab_db
> CREATE USER admin WITH PASSWORD 'admin' WITH ALL PRIVILEGES
ERR: user already exists
Warning: It is possible this error is due to not setting a database.
Please set a database with the command "use <database>".

I checked it out.
Indeed, both users and databases exist in the system, even though THEORETICALLY everything related to Influx and Garfan has been removed from the system.

> auth
username: admin
password:
> show users
user    admin
----    -----
admin   true
openhab false
grafana false
> show databases
name: databases
name
----
openhab_db
openhab
_internal
>

Questions:

  1. Where the data of users and databases physically are stored?
  2. How to properly uninstall INFLUX?

I made it like this:

sudo apt-get remove --auto-remove influxdb
sudo apt-get purge --auto-remove influxdb

/var/lib/influxdb/meta/meta.db

The commands you used to deinstall influxdb including its configuration should be ok.