<p>I have create two secret docker-registrys using with these step:</p>

<pre><code>$ kubectl create secret docker-registry my-secret --docker-username=burak --docker-password=deniz --docker-email=burak@...

$ kubectl create secret docker-registry secret --docker-username=burak --docker-password=deniz --docker-email=burak@...
</code></pre>

<p>After these step I tried to get deployment with using that:</p>

<pre><code>$ kubectl get deployment
</code></pre>

<p>and I have faced to that ERROR:</p>

<blockquote>
  <p>Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "minikubeCA")</p>
</blockquote>

<p>and When I have tried to delete or get these secret docker-registrys,I faced to same Error.</p>

<p>How Can I delete these docker-registrys. Can you help me?.</p>

<p>Thank you for your answers.</p>

<p>I had the problem, I used the following steps to delete docker-secrets.</p>
<ol>
<li>Check available secrets
<pre><code>$kubectl get secrets
</code></pre>
</li>
<li>Delete using <em>name</em> :
<pre><code>$kubectl delete secrets mydockercredentials
</code></pre>
</li>
</ol>
<p>use the above command to delete secrets.</p>
