Cleanup

If you no longer need Istio and associated resources, you can delete them by following the steps in this section.

Remove the ambient and waypoint labels

The label to instruct Istio to automatically include applications in the default namespace to an ambient mesh is not removed by default. If no longer needed, use the following command to remove it:

$ kubectl label namespace default istio.io/dataplane-mode-
$ kubectl label namespace default istio.io/use-waypoint-

Remove waypoint proxies

To remove waypoint proxies, installed policies, and uninstall Istio, run the following commands:

$ istioctl x waypoint delete --all

Uninstall Istio

To uninstall Istio:

$ istioctl uninstall -y --purge
$ kubectl delete namespace istio-system

Remove the sample application

To delete the Bookinfo sample application and the sleep deployment, run the following:

$ kubectl delete -f https://raw.githubusercontent.com/istio/istio/release-1.22/samples/bookinfo/platform/kube/bookinfo.yaml
$ kubectl delete -f https://raw.githubusercontent.com/istio/istio/release-1.22/samples/bookinfo/platform/kube/bookinfo-versions.yaml
$ kubectl delete -f https://raw.githubusercontent.com/istio/istio/release-1.22/samples/sleep/sleep.yaml

Remove the Kubernetes Gateway API CRDs

If you installed the Gateway API CRDs, remove them:

$ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v1.1.0" | kubectl delete -f -
Was this information useful?
Do you have any suggestions for improvement?

Thanks for your feedback!