<p>To setup the kubernetes, I started with creating namespace, deployment, service. To clean the resources, do I need to follow any order like remove the service first then pods and then deployment and finally namespace?
how to clean the resources in a proper way? Because I deleted pods and service, but I could see the pods,services running again. Its deploying the resources again, so this question came up here for experts answers.</p>

intechops6
<p>Just in case you are running them in default namespace and there are many of them ,and you don't want to spend time on deleting them one by one:</p>

<pre><code>kubectl delete deployments --all
kubectl delete services --all
kubectl delete pods --all
kubectl delete daemonset --all
</code></pre>
