Clearing interactive root space

I was wondering if there was an equivalent operation of matlab’s clear all; close all; in root?
When I’m debugging scripts I usually quit and restart root to make sure that I have a clean space. This would be a nice but not necessary feature. I’ve tried putting all my objects I created in a TList and deleting that. It works once identically and then crashes root. Maybe I need a gROOT-Reset() afterwards?

Hi Chris,

To clear the interpreter state and most ROOT state, you can indeed use gROOT->Reset(). However it would not directly deal with your objects (unless they are directly or indirectly own by some ROOT global collections).