Remove ref to deleted class