Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add how-to uninstall the snap section #941

Merged
merged 7 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
```
37 changes: 37 additions & 0 deletions docs/src/snap/howto/install/uninstall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# How to Uninstall the {{ product }} Snap
bschimke95 marked this conversation as resolved.
Show resolved Hide resolved

This guide provides step-by-step instructions for removing the {{ product }}
snap from your system.

---
bschimke95 marked this conversation as resolved.
Show resolved Hide resolved

## 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
```
Loading