<p>I have a list of namespaces and i want to delete them but some of them are giving error and i want to skip that ones and continue other deletions. How can i do that?</p>
<pre><code>kubectl delete services,deployments -n ${namespace} --all  --grace-period=10
</code></pre>

<p>You can try using <code>--ignore-not-found=true</code> flag in command</p>
<pre><code>kubectl delete deployments --ignore-not-found=true -n ${namespace} --all  --grace-period=10
</code></pre>
