Function

SecItemDelete(_:)

Deletes items that match a search query.

Declaration

func SecItemDelete(_ query: CFDictionary) -> OSStatus

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.

func SecItemUpdate(CFDictionary, CFDictionary) -> OSStatus

Modifies items that match a search query.