Remove PMM Server Podman container¶
Remove the PMM Server Podman container, images, and data when you no longer need this installation or want to perform a complete reinstallation.
Caution
These steps delete the PMM Server Docker image and the associated PMM metrics data.
To completely remove your container and data:
-
Stop the PMM Server service:
systemctl --user stop pmm-server
-
If you’re using Watchtower for UI upgrades, stop it too:
systemctl --user stop watchtower
-
Remove the PMM data volume:
#wait for container to stop podman wait --condition=stopped pmm-server || true sleep 10
podman volume rm --force pmm-server
-
Remove the PMM Server images:
podman rmi $(podman images | grep "pmm-server" | awk {'print $3'})
-
Disable the SystemD services:
systemctl --user disable pmm-server systemctl --user disable watchtower
-
Optionally, remove service files:
rm -f %h/.config/systemd/user/pmm-server.service rm -f %h/.config/systemd/user/pmm-server.env rm -f %h/.config/systemd/user/watchtower.service rm -f %h/.config/systemd/user/watchtower.env
-
If you no longer need it, remove the PMM network:
podman network rm pmm_default