How to uninstall the Canonical Kubernetes snap¶
This guide provides step-by-step instructions for removing the Canonical Kubernetes snap from your system.
Removing the k8s snap¶
To uninstall the k8s
snap, run the following command:
sudo snap remove k8s
This command uninstalls the snap but may leave some configurations and data
files on the system.
For a complete removal, including all cluster data, use the --purge
option:
sudo snap remove k8s --purge
Confirm snap removal¶
To confirm the snap is successfully removed, check the list of installed snaps:
snap list k8s
This command should produce an output similar to:
error: no matching snaps installed