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)))))