delete deployment kubernetes code example
Example 1: how to delete deployments in kubernetes
kubectl delete deployment yourDeploymentName
Example 2: how to delete services in kubernetes
kubectl delete services yourServiceNameHere
Example 3: kubectl restart deployment
kubectl rollout restart deployment yourDeploymentName
Example 4: delete a deployment in kubernetes
$ kubectl delete deploy/<deployment_name>