-
-
Notifications
You must be signed in to change notification settings - Fork 418
Uninstall UDM Utilities and Containers
SSH into your UDM to perform any of these tasks. Entering the UniFi OS shell is not required until you get to the step of uninstalling the UDM Utilities package.
List all running containers with the command podman ps
. The output will show the UDM's unifi-os container, along with any that you have added. Do not remove the unifi-os* container. Identify the name of the container that you want to uninstall, and run the following commands:
podman ps
podman stop CONTAINER_NAME
podman rm CONTAINER_NAME
For most containers, you would have created folders for the required data and configuration files. These folders were outlined in the installation steps for any containers that you chose to install. Reference those installation guides to confirm that you are removing the relevant folders after you have removed a container. Take a backup and _then _delete the container's data folder using SSH or WinSCP.
AdGuard Home:
- /mnt/data/AdguardHome-Confdir
- /mnt/data/AdguardHome-Workdir
UDM-LE (Let's Encrypt)
- /mnt/data/udm-le
NTOPNG
- /mnt/data/ntopng
These are the source images that were downloaded (pulled) to spin up the containers. If you are permanently removing a container that you no longer want to use, then you will want to remove its image as well.
List all container images: podman images
Delete a container image: podman rmi CONTAINER_IMAGE_NAME
The removal of all UDM Utilities effects is basically the reverse of installing it. Below are the specific steps required.
- Follow the documented steps to stop and remove all custom containers except for unifi-os, and then remove the matching container images.
- Enter the UnifiOS shell by running
unifi-os shell
. - Uninstall the package:
dpkg -P udm-boot
. - Exit the UniFiOS shell:
exit
. - Remove the
/mnt/data/on_boot.d
folder and any scripts remaining in it. - Remove in
/mnt/data/
theon_boot.sh
script. - Optionally, when you installed the CNI plugin remove all folders and its related settings.
/mnt/data/.cache/cni-plugins
/mnt/data/podman/cni
/opt/cni
/etc/cni