Delete unnecessary classes