code: func (idx *TruncIndex) Delete(id string) error {
  	idx.Lock()
  	defer idx.Unlock()
  	if _, exists := idx.ids[id]; !exists || id == "" {
  		return fmt.Errorf("no such id: '%s'", id)
  	}
  	delete(idx.ids, id)
  	if deleted := idx.trie.Delete(patricia.Prefix(id)); !deleted {
  		return fmt.Errorf("no such id: '%s'", id)
  	}
  	return nil
  }
docs: // Delete removes an ID from the TruncIndex. If there are multiple IDs
  // with the given prefix, an error is thrown.