remove references to deleted files