remove obsolete profiles and defines