deletes index