Skip to content
Merged
Changes from all 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
20 changes: 13 additions & 7 deletions docs/setup/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ product_name: stash
menu_name: product_stash_0.6.1
section_menu_id: setup
---

# Uninstall Stash

Please follow the steps below to uninstall Stash:

1. Delete the deployment and service used for Stash operator.
- Delete the deployment and service used for Stash operator.

```console
$ ./hack/deploy/uninstall.sh
$ curl -fsSL https://raw.githubusercontent.com/appscode/stash/0.6.1/hack/deploy/uninstall.sh | bash

+ kubectl delete deployment -l app=stash -n kube-system
deployment "stash-operator" deleted
+ kubectl delete service -l app=stash -n kube-system
Expand All @@ -34,22 +36,26 @@ No resources found
initializerconfiguration "stash-initializer" deleted
```

2. Now, wait several seconds for Stash to stop running. To confirm that Stash operator pod(s) have stopped running, run:
- Now, wait several seconds for Stash to stop running. To confirm that Stash operator pod(s) have stopped running, run:

```console
$ kubectl get pods --all-namespaces -l app=stash
```

3. To keep a copy of your existing `Restic` objects, run:
- To keep a copy of your existing `Restic` objects, run:

```console
kubectl get restic.stash.appscode.com --all-namespaces -o yaml > data.yaml
```

4. To delete existing `Restic` objects from all namespaces, run the following command in each namespace one by one.
- To delete existing `Restic` objects from all namespaces, run the following command in each namespace one by one.

```
kubectl delete restic.stash.appscode.com --all --cascade=false
```

5. Delete the old CRD-registration.
- Delete the old CRD-registration.

```console
kubectl delete crd -l app=stash
```