Delete saved passwords for Chrome and Edge from the command line

After implementing a Group Policy to prohibit saving of passwords in Google Chrome and Microsoft Edge, the previously saved passwords are still on the system. To remove these from multiple systems, a simple script can be deployed via GPO at User Logon to do the work. Otherwise, on a case-by-case basis, the passwords can be cleared by going into each browser’s settings and then the passwords section to clear saved passwords.

@echo off

taskkill /f /im msedge.exe taskkill /f /im chrome.exe

del “%LocalAppData%\Google\Chrome\User Data\Default\Login Data” /q del “%LocalAppData%\microsoft\edge\User Data\Default\Login Data” /q

Published At
Tagged with