func (s *StateStore) DeleteVaultAccessors(index uint64, accessors []*structs.VaultAccessor) error {
	txn := s.db.Txn(true)
	defer txn.Abort()

	// Lookup the accessor
	for _, accessor := range accessors {
		// Delete the accessor
		if err := txn.Delete("vault_accessors", accessor); err != nil {
			return fmt.Errorf("accessor delete failed: %v", err)
		}
	}

	if err := txn.Insert("index", &IndexEntry{"vault_accessors", index}); err != nil {
		return fmt.Errorf("index update failed: %v", err)
	}

	txn.Commit()
	return nil
}
// DeleteVaultAccessors is used to delete a set of Vault Accessors
DeleteVaultAccessors is used to delete a set of Vault Accessors
// DeleteVaultAccessors is used to delete a set of Vault Accessors
func (s *StateStore) DeleteVaultAccessors(index uint64, accessors []*structs.VaultAccessor) error {
	txn := s.db.Txn(true)
	defer txn.Abort()
	for _, accessor := range accessors {
		if err := txn.Delete("vault_accessors", accessor); err != nil {
			return fmt.Errorf("accessor delete failed: %v", err)
		}
	}
	if err := txn.Insert("index", &IndexEntry{"vault_accessors", index}); err != nil {
		return fmt.Errorf("index update failed: %v", err)
	}
	txn.Commit()
	return nil
}
func ( s * StateStore ) DeleteVaultAccessors ( index uint64 , accessors [ ] * structs . VaultAccessor ) error { txn := s . db . Txn ( true ) defer txn . Abort ( ) for _ , accessor := range accessors { if err := txn . Delete ( " " , accessor ) ; err != nil { return fmt . Errorf ( " " , err ) } } if err := txn . Insert ( " " , & IndexEntry { " " , index } ) ; err != nil { return fmt . Errorf ( " " , err ) } txn . Commit ( ) return nil }
DeleteVaultAccessors is used to delete a set of Vault Accessors
DeleteVaultAccessors is used to delete a set of Vault Accessors
// Lookup the accessor // Delete the accessor