While customizing my PS profile with the great PSReadline sample example, I had the idea to try to delete a specific history entry from the history ListView format.
For example I have the following

Ideally, I'd like to delete the highlighted entry from the history with the "Del" keystroke, but I don't know how to script that or get started by using the Set-PSReadLineKeyHandler CmdLet
Any suggestions ?
It's not ideal, it can be slow depending on the size of your history file, but this worked in my session. The caveat is that even if you remove a line from the
.HistorySavePathfile, the history item will still be visible as a completion item until you restart the session. Based on PSReadLine Issue #494, the way you can "refresh" without restarting is to clear the history and re-add the content lines excluding the item to remove.