remove kubernetes deployment code example
Example 1: kubectl restart deployment
kubectl rollout restart deployment yourDeploymentName
Example 2: delete a deployment in kubernetes
$ kubectl delete deploy/<deployment_name>
kubectl rollout restart deployment yourDeploymentName
$ kubectl delete deploy/<deployment_name>