If you did removed the data on the GUI, the second command shouldn't show anything:
Code
pi@xxxxxxx:~ $ docker info | grep -i "Docker Root Dir"
WARNING: No memory limit support
WARNING: No swap limit support
Docker Root Dir: /srv/dev-disk-by-uuid-a4f3fa5c-54a4-4cf5-aacf-0a301d5a189f/docker
pi@xxxxxxx:~ $ sudo ls -al /srv/dev-disk-by-uuid-a4f3fa5c-54a4-4cf5-aacf-0a301d5a189f/docker/volumes/portainer_data/_data
total 172
drwxr-xr-x 1 root root 152 Jul 3 12:22 .
drwx-----x 1 root root 10 Dec 26 2021 ..
drwx------ 1 root root 12 Jul 3 12:22 backups
drwx------ 1 root root 0 Dec 26 2021 bin
drwx------ 1 root root 30 Dec 26 2021 certs
drwx------ 1 root root 0 Jun 1 2022 compose
drwx------ 1 root root 44 Jun 1 2022 docker_config
-rw------- 1 root root 167936 Dec 21 12:36 portainer.db
-rw------- 1 root root 227 Dec 26 2021 portainer.key
-rw------- 1 root root 190 Dec 26 2021 portainer.pub
drwx------ 1 root root 0 Dec 26 2021 tls
pi@xxxxxxxx:~ $ sudo ls -al /srv/dev-disk-by-uuid-a4f3fa5c-54a4-4cf5-aacf-0a301d5a189f/docker/volumes/portainer_data/_data
ls: cannot access '/srv/dev-disk-by-uuid-a4f3fa5c-54a4-4cf5-aacf-0a301d5a189f/docker/volumes/portainer_data/_data': No such file or directory
Alles anzeigen
After stopping and removing Portainer, you can try to force delete the folder:
sudo rm -rf /var/lib/docker/volumes/portainer_data
Then on the GUI, install it again.