A Python script to delete unnecessary saved passwords from Google Chrome while protecting important ones (e.g., Google, Yahoo, Binance, Netflix, etc.).
✅ Lists all saved passwords (URL + username).
✅ Allows selective deletion of passwords.
✅ Skips important passwords for Google,Yahoo,Netflix.
✅ Creates a backup before modifying the database.
✅ Deletes only selected passwords, leaving others intact.
Make sure Chrome is completely closed before using the script. Run:
pkill chrome
git clone https://github.com/yourusername/chrome-password-cleaner.git
cd Chrome-Password-Cleaner
This script only requires Python's built-in sqlite3
module, which is included in standard Python installations.
python3 main.py
- The script will list all saved passwords.
- Protected passwords (Google, Yahoo, Binance, etc.) will be marked ❌ (Protected) and cannot be deleted.
- Enter the numbers of the passwords you want to delete (comma-separated).
After deleting passwords, restart Chrome to see the changes.
If you get this error:
- Close Chrome completely:
pkill chrome
- Check if Chrome is still using the file:
If a process is listed, kill it:
lsof ~/.config/google-chrome/Default/Login\ Data
kill -9 <PID>
- Make a copy of the database and edit the copy:
Then modify
cp ~/.config/google-chrome/Default/Login\ Data ~/Desktop/LoginData_copy
main.py
to use~/Desktop/LoginData_copy
instead.
- Use this script at your own risk. Editing Chrome's database directly can corrupt it if done incorrectly.
- Always create a backup (this script does it automatically).