diff --git a/docs/setup/uninstall.md b/docs/setup/uninstall.md index ae3de009a..47589c0e8 100644 --- a/docs/setup/uninstall.md +++ b/docs/setup/uninstall.md @@ -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 @@ -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 ```