I have the following pods:
NAME READY STATUS RESTARTS AGE xxx-myactivities-79f49cdfb4-nwg22
kubectl get pod --all-namespaces | awk '{if ($4 != "Running") system ("kubectl -n " $1 " delete pods " $2 " --grace-period=0 " " --force ")}'
you can use this command