Update index properly for deleted files