Delete classes and resources which are not in use