<p>I have pod running my application. The pod also contains my secret. The secret mapped to <code>/secret/mysecret.json</code>. I connecting to my pod with ssh and try to remove the secret from this pod instance:</p>

<pre><code>rm /secret/mysecret.json
</code></pre>

<p>I getting the Error:</p>

<pre><code>rm: cannot remove 'mysecret.json': Read-only file system
</code></pre>

<p>According to <a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="nofollow noreferrer">this article</a>, I tried to changed the <code>readOnly</code> settings to <code>False</code>. No success.</p>

<p>Also tried to unmount it, got errors:</p>

<pre><code>$ umount /secret/mysecret.json
  umount: /app/secrets/app-specific: must be superuser to unmount
</code></pre>

<p>How I can delete secret from a pod?</p>

<p>The way you should handle this the kubernetes way is:</p>
<pre><code>kubectl delete secret &lt;&lt;secret name goes here&gt;&gt;
</code></pre>
