title: IPython: How to wipe IPython's history selectively & securely?
body: <p>I have been learning how to use the <code>paramiko</code> package only to discover that all I stored passwords in plain text in IPython's <code>%hist</code>. Not so good.</p>
  
  <p>I therefore need to get rid of particular parts of what is stored in <code>%hist</code>. Saying that, I do not want to wipe the <em>whole history</em>. - Only the parts where I have been careless enough to type <code>password =</code> or similar chosen terms.</p>
  
  <p><em>Thanks</em></p>
  
  <hr>
  
  <p>Comments I don't need:</p>
  
  <ul>
  <li><code>%clear</code> only clears the session. It does not wipe the history.</li>
  <li>Yes. I will only use xSA_keys from now on.</li>
  </ul>