Skip to content

Commit

Permalink
Add uninstall section
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Jan 9, 2025
1 parent 66772d6 commit 32a3edc
Show file tree
Hide file tree
Showing 2 changed files with 40 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>
```
39 changes: 39 additions & 0 deletions docs/src/snap/howto/install/uninstall.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 32a3edc

Please sign in to comment.