remove references to deleted attributes