text: Title: Add `history delete` 
  Body: We need two things:
  1. `history delete <pattern>` command that will delete certain command from history
  2. ~The way to mark commands and skip it while flushing history on disk i.e. `echo 123 #skip-history`. In bash this work by [adding the space](https://stackoverflow.com/questions/6475524/how-do-i-prevent-commands-from-showing-up-in-bash-history) before command.~ (implemented, see [$XONSH_HISTORY_IGNORE_REGEX](https://xon.sh/envvars.html#xonsh-history-ignore-regex))
  
  ### Discussed in https://github.com/xonsh/xonsh/discussions/4928
  
  <div type='discussions-op-text'>
  
  <sup>Originally posted by **manujchandra** August 28, 2022</sup>
  I recently processed some OTP codes URI on the terminal using python qr library. It contains sensitive information regarding token IDS.
  
  After that, I issued the commands history flush and history clear. But there are two problems:
  
  1) When I press the up arrow, it refills the previous command which contains the sensitive information and it keeps going back in history.
  2) When I write qr it tries to autocompletes the full otp uri with sensitive codes (in gray color).
  
  How do I delete the history in such a manner that there is no autocomplete and also no history when I press the up button. Because that data should not get flashed during screen sharing accidentally.
  
  ![Screenshot_2022-08-28_19-49-14](https://user-images.githubusercontent.com/15191493/187078662-449c6b3e-a542-4ac1-bf02-20c14531f2a2.png)
  
  </div>
  
  ## For community
  ⬇️  **Please click the 👍 reaction instead of leaving a `+1` or 👍  comment**
  