codegurukool.com · Free coding tutorials & online compiler

Home › Kubernetes Tutorial › Clean up

Clean up

Delete what you created.

Delete by file or by name. Deleting a Deployment also deletes its Pods. To remove everything in a practice cluster, delete the namespace or run minikube delete.

Example code

kubectl delete -f pod.yaml
kubectl delete deployment web

Run this code in the online editor

← TroubleshootingLive project: Deploy a web app →