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..f85e5f573 --- /dev/null +++ b/docs/src/snap/howto/install/uninstall.md @@ -0,0 +1,39 @@ +# How to uninstall the {{ product }} snap + +This guide provides step-by-step instructions for removing the {{ product }} +snap from your system. + +--- + +## Steps to Uninstall + +### Remove the snap + +To uninstall the `k8s` snap, run the following command: + +``` +sudo snap remove k8s +``` + +This command uninstalls the snap but may leave some configuration and data +files on the system. +For a complete removal, including all cluster data, use the `--purge` option: + +``` +sudo snap remove k8s --purge +``` + +### Verify removal + +To confirm the snap has been successfully removed, check the list of installed +snaps: + +``` +snap list k8s +``` + +which should produce an output similar to: + +``` +error: no matching snaps installed +```