Fix for PRO-25967

Update index when file is deleted
Merge pull request #5 from RodrigoRossi/master

Fix for PRO-25967