clean and update index Directory