diff --git a/docs/src/snap/howto/install/index.md b/docs/src/snap/howto/install/index.md index 76e1169c7..cb8eeba54 100644 --- a/docs/src/snap/howto/install/index.md +++ b/docs/src/snap/howto/install/index.md @@ -16,4 +16,5 @@ Install from a snap multipass Install in LXD Install in air-gapped environments +Uninstall the snap ``` diff --git a/docs/src/snap/howto/install/uninstall.md b/docs/src/snap/howto/install/uninstall.md new file mode 100644 index 000000000..ce31c27ce --- /dev/null +++ b/docs/src/snap/howto/install/uninstall.md @@ -0,0 +1,36 @@ +# How to uninstall the {{product}} snap + +This guide provides step-by-step instructions for removing the {{ product }} +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 +```