Delete obsolete classes and templates