I wonder if it could make sense to amend the 'clear' command with an
option that would also unload all user-defined functions from memory and
the active session?
Related question: Is there currently a way other than restarting gretl
to achieve that? (I know how to unload functions from a package manually.)