How to clear variables in ipython?

Sometimes I rerun a script within the same ipython session and I get bad surprises when variables haven't been cleared. How do I clear all variables? And is it possible to force this somehow every time I invoke the magic command %run?

Thanks

%reset seems to clear defined variables.

From: stackoverflow.com/q/22934204

Back to homepage or read more recommendations: