Skip to main content
Question

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

  • July 15, 2020
  • 1 reply
  • 8 views

Forum|alt.badge.img+2

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

dan-snelson
Forum|alt.badge.img+30
  • Honored Contributor
  • July 16, 2020

@magtype The following Bash command should delete known entries:

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