I have played with a lot of code in a repl console, how can I clear it? I would like a fresh one without restarting it. Can that be done?
It depends what you mean by 'clean'. To remove all namespaces within a 'package' you can use:
(mapv remove-ns
(map symbol
(filter #(.startsWith % "org.mycompany")
(map str (all-ns)))))
In EMACS/slime REPLs C-c C-o clears the last output (in case you've typed something that gave a very long answer) C-c M-o clears the whole thing
In GNOME terminals, you've got a menu option Terminal/Reset and Clear