Sometimes removing namespace is stucked at terminating state. Removing finalizer: ["kubernetes"] is a terriable idea.
As advised( by @alvaroaleman, try to instead find out which resources in the NS are pending deletio
#Checking if any apiservice is unavailable and hence doesn't serve its resources
kubectl get apiservice|grep False
# Finding all resources that still exist via
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get -n $your-ns-to-deletekubectl get apiservice -o wide
kubectl api-resources# Reload api server after csr template update
snap set microk8s csr-refresh=truefor name in `kubectl get cronjob -o custom-columns=:.metadata.name`; \
do kubectl patch cronjobs $name -p '{"spec" : {"suspend" : true }}'; \
done;