Skip to main content
Question

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

  • July 15, 2020
  • 1 reply
  • 1 view

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+28
  • Honored Contributor
  • 627 replies
  • 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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings