remove refs to nonexistent files