<p>I am new to Kubernetes so pardon me if you find my question noob. </p>

<p>I have created a Daemonset called <strong>testDaemon.yml</strong> which is having a service in it called <strong>testService</strong>. Both were created but now I have made some minor changes and I need to re-create it.</p>

<p>I tried deleting the services and daemonset:</p>

<pre><code>kubectl delete ds testDaemon
kubectl delete svc testService 
</code></pre>

<p>but both of them is getting recreated everytime I delete them and I am getting an error that <code>services "testService" already exists</code>when I run kubectl create -f testDaemon.yml again. </p>

<p>What should I do to remove the DaemonSet completely or update the same with the new template?</p>

Vikas Rathore
<p>You can delete it using 
<code>kubectl delete -f testDaemon.yml</code></p>

<p>It will delete the statefulset and service both.</p>
