Add method to reset an index.