While using Mongodb console or shell sometimes my screen is cluttered with a lot of previous output which I do not need. So, is there a function to clear console in MongoDB?
Judging by Jira they have done it: You need to write cls in the shell.
cls
You can also use a hotkey: CTRL + L.
In macOS: Command + K.
Check more hotkeys for the shell here.