Skip to content

Commit

Permalink
docs: Add how-to uninstall the snap section (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 authored Jan 10, 2025
1 parent 91f29ec commit 6087231
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/snap/howto/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Install from a snap <snap.md>
multipass
Install in LXD <lxd.md>
Install in air-gapped environments <offline.md>
Uninstall the snap <uninstall.md>
```
36 changes: 36 additions & 0 deletions docs/src/snap/howto/install/uninstall.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 6087231

Please sign in to comment.