Attempting to create an applescript to delete network passwords in keychain access

magtype
New Contributor

I would like to create an Applescript to remove users kind: "network password" in their Keychain Access.

Any help or direction would be greatly appreciated.

Thank you,

1 REPLY 1

dan-snelson
Valued Contributor II

@magtype The following Bash command should delete known entries:

/usr/bin/security delete-internet-password -l "${1}" /Users/${loggedInUser}/Library/Keychains/login.keychain-db