delete all but index