removeInstances - remove instances of a class from list