func (s *StateStore) RemoveIndex(name string) error {
	txn := s.db.Txn(true)
	defer txn.Abort()

	if _, err := txn.DeleteAll("index", "id", name); err != nil {
		return err
	}

	txn.Commit()
	return nil
}
// RemoveIndex is a helper method to remove an index for testing purposes
RemoveIndex is a helper method to remove an index for testing purposes
// RemoveIndex is a helper method to remove an index for testing purposes
func (s *StateStore) RemoveIndex(name string) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	if _, err := txn.DeleteAll("index", "id", name); err != nil {
		return err
	}
	txn.Commit()
	return nil
}
func ( s * StateStore ) RemoveIndex ( name string ) error { txn := s . db . Txn ( true ) defer txn . Abort ( ) if _ , err := txn . DeleteAll ( " " , " " , name ) ; err != nil { return err } txn . Commit ( ) return nil }
RemoveIndex is a helper method to remove an index for testing purposes
RemoveIndex is a helper method to remove an index for testing purposes