Can't delete keychain items with UI, but command line works fine
When using the Keychain Access
app, I am often unable to delete an Web form password
item. I have tried hitting the delete
key and going to Edit
> Delete
. In both cases, nothing happens, there is no error message.
I can delete the item if I use the command line version of the tool:
$ security find-internet-password -a "[email protected]"
keychain: "/Users/simon/Library/Keychains/woodside-mbp.keychain"
version: 256
class: "inet"
attributes:
0x00000007 <blob>="daw.apple.com ([email protected])"
0x00000008 <blob>=<NULL>
"acct"<blob>="[email protected]"
"atyp"<blob>="form"
...
$ security delete-internet-password -a "[email protected]"
keychain: "/Users/simon/Library/Keychains/woodside-mbp.keychain"
version: 256
class: "inet"
attributes:
0x00000007 <blob>="daw.apple.com ([email protected])"
0x00000008 <blob>=<NULL>
"acct"<blob>="[email protected]"
"atyp"<blob>="form"
...
password has been deleted.
If I now redo the search in Keychain Access, the item is gone.
I am running El Capitan 10.11.4 (15E65), Keychain Access Version 9.0 (55171.20.2), and
I notice you say, "If I now redo the search in Keychain Access…" implying that you began by searching when you weren't able to delete the item. Find it in the list without searching and then delete. It's just a dumb bug. I have found I sometimes can delete a single item after searching, but not multiple, and sometimes there's no problem at all. ¯\_(ツ)_/¯
Had the same problem, found that I was able to delete keys once I switched from iCloud
to login
in the Default Keychains
section.
If the password entry was created while using safari, you will need to delete it in the preferences of safari rather then through the keychain. The entry will be found under the password tab in preferences.