<p>I have installed RKE2 cluster with following command:</p>
<pre><code>sudo curl -sfL https://get.rke2.io | sudo INSTALL_RKE2_TYPE=server INSTALL_RKE2_CHANNEL=v1.23.16+rke2r1 sh - 
</code></pre>
<p>Then I've deployed a few applications. Then I've decided to reinstall RKE2 with different version. I've used following command to uninstall current cluster:</p>
<pre><code>/usr/local/bin/rke2-uninstall.sh
</code></pre>
<p>After then I've used that command to install RKE2 with different version:</p>
<pre><code>sudo curl -sfL https://get.rke2.io | sudo INSTALL_RKE2_TYPE=server INSTALL_RKE2_CHANNEL=v1.25.9+rke2r1 sh - 
</code></pre>
<p>Everything was okay, but I've noticed that when I've run &quot;kubectl get pods -A&quot; there were remaining pods from previous cluster. However I've removed cluster. How Can I be sure about everything will be gone when I uninstalled the cluster?</p>

oakkose
<p>You can delete all namespaces and every components (pods, deployments, services, etc.) inside every namespace before to uninstall the cluster with this command:</p>
<pre><code>kubectl delete --all namespaces
</code></pre>
<p>Verify that every pod has been deleted with the command:</p>
<pre><code>kubectl get pod --all-namespaces
</code></pre>
