kubectl stop deployment and delete code example
Example 1: how to delete deployments in kubernetes
kubectl delete deployment yourDeploymentName
Example 2: kubectl restart deployment
kubectl rollout restart deployment yourDeploymentName
kubectl delete deployment yourDeploymentName
kubectl rollout restart deployment yourDeploymentName