Fix for PRO-25967

Update index when file is deleted