delete the content of index, rebuild it.