code: func (s *Store) CADeleteProviderState(id string) error {
  	tx := s.db.Txn(true)
  	defer tx.Abort()
  
  	// Get the index
  	idx := maxIndexTxn(tx, caBuiltinProviderTableName)
  
  	// Check for an existing config
  	existing, err := tx.First(caBuiltinProviderTableName, "id", id)
  	if err != nil {
  		return fmt.Errorf("failed built-in CA state lookup: %s", err)
  	}
  	if existing == nil {
  		return nil
  	}
  
  	providerState := existing.(*structs.CAConsulProviderState)
  
  	// Do the delete and update the index
  	if err := tx.Delete(caBuiltinProviderTableName, providerState); err != nil {
  		return err
  	}
  	if err := tx.Insert("index", &IndexEntry{caBuiltinProviderTableName, idx}); err != nil {
  		return fmt.Errorf("failed updating index: %s", err)
  	}
  
  	tx.Commit()
  
  	return nil
  }
docs: // CADeleteProviderState is used to remove the built-in Consul CA provider
  // state for the given ID.