<p dir="auto">Steps to reproduce:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl --context=federation delete rs k8shserver
replicaset &quot;k8shserver&quot; deleted
$ kubectl --context=federation create -f rs/k8shserver.yaml 
Error from server: error when creating &quot;rs/k8shserver.yaml&quot;: object is being deleted: replicasets &quot;k8shserver&quot; already exists"><pre class="notranslate"><code class="notranslate">$ kubectl --context=federation delete rs k8shserver
replicaset "k8shserver" deleted
$ kubectl --context=federation create -f rs/k8shserver.yaml 
Error from server: error when creating "rs/k8shserver.yaml": object is being deleted: replicasets "k8shserver" already exists
</code></pre></div>
<p dir="auto">Expected:<br>
<code class="notranslate">kubectl delete rs</code> command should complete after all replica sets from all underlying clusters are deleted.</p>
<p dir="auto">Observed:<br>
command completed although there are still replica sets being deleted.</p>