To cleanup, follow the below steps.

Terminate any kubectl port-forward or watch processes

killall kubectl
killall watch

When you’re finished experimenting with the Bookinfo sample, uninstall and clean it up using the following instructions

export NAMESPACE="bookinfo"


kubectl delete ns bookinfo

istioctl will delete:

  • The RBAC permissions
  • The istio-system namespace
  • All resources hierarchically under it

You can ignore the errors for non-existent resources because they may have been deleted hierarchically.

istioctl manifest generate --set profile=demo | kubectl delete -f -

Finally, we can delete the istio folder and clean up the ~/.bash_profile.

cd ~/environment
rm -rf istio-${ISTIO_VERSION}

sed -i '/ISTIO_VERSION/d' ${HOME}/.bash_profile