There is the "File>Optimize Scene Size" which if you open the option box shows all the things it cleans up saves me typing it all out for you - it says its undoable but ctrl Z works all the time. This sorts out my outliner all the time for me.