Delete kubernetes namespace which is stuck in Terminating state with a single command
kubectl get namespace "namespaceName" -o json \
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
| kubectl replace --raw /api/v1/namespaces/namespaceName/finalize -f -