Clear file explorer history

broken image
broken image
broken image

I can still see previous commands in the pop-up history menu, and scroll through old commands by pressing the up key. Unfortunately, the Clear-History cmdlet doesn't seem to actually do what its documentation claims - running Clear-History doesn't seem to have any impact on the session history whatsoever. Recently I had to run a command that unfortunately required me to type a password right on the command line.Īfterwards, I cleared my screen with 'Clear', but also wanted to clear the command history so the offending command wouldn't show up in the session history.