Remove All unused level

How can i remove all unused levels on my model? I tried using the compress option but it did not work.