Deletes a keychain item from the default keychain’s permanent data store.
- macOS 10.2+
A keychain item object of the item to delete. You must call the
CFReleasefunction to release this object when you are finished using it.
A result code. See Security Framework Result Codes.
If the keychain item has not previously been added to the keychain, this function does nothing and returns
Do not delete a keychain item and recreate it in order to modify it; instead, use the
Sec function to modify an existing keychain item. When you delete a keychain item, you lose any access controls and trust settings added by the user or by other applications.