delete everything in index/ before constructIndex