Function

SecItemDelete

Deletes items that match a search query.

Declaration

OSStatus SecItemDelete(CFDictionaryRef query);

Parameters

query

A dictionary that describes the search for the keychain items you want to delete.

Return Value

Discussion

See the SecItemCopyMatching function for information about how to construct a search dictionary.

By default, this function deletes all items matching the specified query. You can change this behavior by specifying a key, as follows:

See Also

Keychain Item Modification

Updating and Deleting Keychain Items

Modify items in the keychain when the user’s data changes.

SecItemUpdate

Modifies items that match a search query.