<p>i want to uninstall kubernetes from Centos 7 and all it's dependencies and files like : </p>

<pre><code>kube-apiserver 
kube-controller-manager  
kubectl                  
kubelet                  
kube-proxy                
kube-scheduler
</code></pre>

<p>Check this <a href="https://stackoverflow.com/questions/44698283/how-to-completely-uninstall-kubernetes">thread</a> or else these steps should help, </p>

<p>First clean up the pods running into your k8s cluster using,</p>

<pre><code>$ kubectl delete node --all
</code></pre>

<p>then remove data volumes and back-up(if it's not needed) from your host system. Finally, you can stop all the k8s services using the script,</p>

<pre><code>$ for service in kube-apiserver kube-controller-manager kubectl kubelet kube-proxy kube-scheduler; do
      systemctl stop $service
  done
$ yum -y remove kubernetes #if it's registered as a service
</code></pre>
