On Windows 10, I want to clear the entire history of the cmder /conemu command and bash window commands. However, I cannot delete even if I use the following approaches:

  • Open .history file in %CMDER_ROOT%\config\.history and delete its content --> Not make any sense

  • Run some commands e.g. Alt+F7, history -c

I am getting crazy when I see several commands that I used for Docker 2-3 months ago. I think there must be a way to clear the entire history or some of the history e.g. deleting some lines of the .history file. How can I perform this?

  • Deleting C:\Program Files (x86)\cmder\config\.history did it for me. Cmder must be closed when deleting.
    – harrymc
    Mar 2, 2021 at 20:52
  • I tried it and now I also tried again by closing cmder as you said. But does not make any sense and I see the entire history by using up and down arrow keys.
    – Jack
    Mar 2, 2021 at 21:11

1 Answer 1


Some commands that should do it are:

  • Delete the C:\Program Files (x86)\cmder\config\.history file.
  • Enter the command cmd /k in the prompt (for some info on why it does this, see Why does cmd/k reset/clear command history).
  • Enter doskey /listsize=0 in the prompt.
  • None of them is working :(
    – Jack
    Mar 2, 2021 at 21:49
  • @ClintEastwood Really? Dang it. They all work okay for me. Is there something else going on?
    – Ollie
    Mar 2, 2021 at 21:50
  • Do you mean that you cannot retrieve any command by using up/down keys after restarting cmder?
    – Jack
    Mar 2, 2021 at 21:52
  • @ClintEastwood Yes.
    – Ollie
    Mar 2, 2021 at 21:52
  • I know it is weird, but I tried all of these methods and restarted the PC. Then try, but unfortunately again see the same list of commands.
    – Jack
    Mar 3, 2021 at 9:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .