```shell kubectl delete ns --grace-period=0 –force kubectl get namespace kube-system -o json >tmp.json kubectl proxy curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/kube-system/finalize kubectl -n kube-system get pods | grep Evicted |awk '{print$1}'|xargs kubectl -n argo delete pods ``` ```shell kubeadm reset -f modprobe -r ipip lsmod rm -rf ~/.kube/ rm -rf /etc/kubernetes/ rm -rf /etc/systemd/system/kubelet.service.d rm -rf /etc/systemd/system/kubelet.service rm -rf /usr/bin/kube* rm -rf /etc/cni rm -rf /opt/cni rm -rf /var/lib/etcd rm -rf /var/etcd yum clean all yum remove kube* ```