Fix old index deletion when -f flag is provided.