command to force delete a resource in kubernetes code example
Example 1: force delete pod kubernetes
kubectl delete pods <pod> --grace-period=0 --force
Example 2: delete a deployment in kubernetes
$ kubectl delete deploy/<deployment_name>
kubectl delete pods <pod> --grace-period=0 --force
$ kubectl delete deploy/<deployment_name>