Is there a command to clear history from the mongo shell?
Your home folder must have a .dbshell file. Just delete it.
You can clear the contents of the shell with Ctrl + L
The MongoDB terminal history is stored inside the ~/.dbshell . Just run the .dbshell file
~/.dbshell
.dbshell
$ > ~/.dbshell
Windows versions of mongo.exe prior to 2.2.0 will save the .dbshell file in the mongo.exe working directory.