title: How to completely uninstall kubernetes
body: <p>I installed kubernetes cluster using <em>kubeadm</em> following this <a href="https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/" rel="noreferrer">guide</a>. After some period of time, I decided to reinstall K8s but run into troubles with removing all related files and not finding any docs on official site how to remove cluster installed via kubeadm.
  Did somebody meet the same problems and know the proper way of removing all files and dependencies? Thank you in advance.</p>
  
  <p>For more information, I removed <em>kubeadm</em>, <em>kubectl</em> and <em>kubelet</em> using <code>apt-get purge/remove</code> but when I started installing the cluster again I got next errors:</p>
  
  <pre><code>[preflight] Some fatal errors occurred:
      Port 6443 is in use
      Port 10251 is in use
      Port 10252 is in use
      /etc/kubernetes/manifests is not empty
      /var/lib/kubelet is not empty
      Port 2379 is in use
      /var/lib/etcd is not empty
  </code></pre>