Good morning!
I have deployed almost 125 macs to my students. Now these students are graduating, so the devices are handed over to the new students. The ownership changes were smooth with the help of hexnode. But some students have stored their login passwords to various accounts on their keychain app. I would like to erase all passwords stored by the previous students so that the new students be able to set up fresh accounts for their use. I was able to come up with a script to perform this task but when I deployed it through hexnode, it showed an error. Given below is the script I used.
security delete-keychain ~/Library/Keychains/login.keychain
This was the error popping up when I ran the script “security: SecKeychainDelete: The specified keychain could not be found”. Can anyone give me directions on how to rectify the script.