Remove references to deleted files.