title: Kubernetes: Delete secret from pod
body: <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>