Skip to main content

Uninstall

If at some point you decide that MintPress is not for you and you no longer wish to continue using the services it provides, follow these steps to permanently remove MintPress from your machine.

danger

Before uninstalling MintPress we suggest making a backup in case you would like to restore any MintPress data in the future.

Remove the MintPress containers and data​

Terminate and remove the running MintPress containers (and associated data) by executing the following commands:

helm uninstall mintpress -n ${KUBERNETES_NAMESPACE}

This command might take a few minutes to complete as all the MintPress containers will be terminated and their associated data will be removed.

MintPress will be uninstalled, but some persistent data will remain in your Kubernetes cluster in case you would like to reinstall MintPress in the future. This is described in more detail in the persistent data guide.

warning

The following step will delete the secret vault data, database credentials and other sensitive information.

To fully clear the MintPress installation from your Kubernetes cluster, you can also delete the MintPress namespace:

kubectl delete namespace ${KUBERNETES_NAMESPACE}

Remove the CNPG namespace​

If you are not using the CNPG operator for any other purposes, you can also delete the CNPG namespace:

kubectl delete namespace cnpg-system

Remove the cached container images​

Uninstalling the chart stops the containers, but the images it pulled stay in each K3s node's containerd image store. Remove the LimePoint images to reclaim that disk, using the crictl alias from the K3s installation guide:

crictl images | grep limepoint/ | awk '{print $3}' | xargs crictl rmi

If nothing else runs on the cluster, remove every image that no container references instead:

crictl rmi --prune

Run this on every K3s node — each one keeps its own image cache.

Logout from the Helm registry​

You can logout of the Helm registry by running the following command:

helm registry logout docker.io

Uninstall the native CLI​

If you have installed the native CLI when installing MintPress, you can uninstall it by deleting the binary file and removing the configuration file used by it:

# remove the CLI from wherever you installed it (user-local by default)
rm -f ~/.local/bin/manage-mintpress
rm -f $HOME/.mintpress/config.yaml

If you installed the CLI system-wide, remove it with sudo instead: sudo rm -f /usr/local/bin/manage-mintpress.

Delete the MintPress configuration files​

Remove the configuration files that you created when configuring MintPress. For example:

rm -f /limepoint/values.yaml