how to delete and recreate kubectl apply file code example Example: how to delete deployments in kubernetes kubectl delete deployment yourDeploymentName