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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software