Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Batch remove obsolete logins

  • 2 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 5 views
  • Last reply by cor-el

Hi, I'd like to batch delete ~100 old logins from Firefox.

Previous forum posts suggested using these URLs to access password management: chrome://passwordmgr/content/passwordManager.xul and chrome://passwordmgr/content/passwordManager.xhtml but neither work on FF88.0b2 64bit on macOS 10.14.6

Thanks

Hi, I'd like to batch delete ~100 old logins from Firefox. Previous forum posts suggested using these URLs to access password management: chrome://passwordmgr/content/passwordManager.xul and chrome://passwordmgr/content/passwordManager.xhtml but neither work on FF88.0b2 64bit on macOS 10.14.6 Thanks

All Replies (2)

This is currently not possible (you can only remove all logins). There is a bug report to add this feature, but isn't actively worked.

  • Bug 1208194 - Implement multi-select deletion of logins

Please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

You can vote for a bug to show your interest
https://bugzilla.mozilla.org/page.cgi?id=voting.html

If you are familiar with editing a JSON file then you can remove them from logins.json

You can use this code in the Browser Console to get all logins. Remove the logins and then import the modified logins using a fresh logins.json. Make sure to keep a backup. You can possibly open the modified logins file in a Firefox tab to verify that the file is valid JSON.


/* export logins in JSON format */
var lg = prompt("Logins",JSON.stringify(Services.logins.getAllLogins()));
/* import logins in JSON format */
if (lg = prompt("Logins JSON: [{},{}]","?")){
lg = JSON.parse(lg);
try {/*[60+]*/
 for(i=0;LG=lg[i];i++){if(!LG.origin){LG.origin = LG.hostname}}
 ChromeUtils.import("resource://gre/modules/LoginHelper.jsm");
 LoginHelper.maybeImportLogins(lg);
} catch(e){console.log(e);}
}

Another possibility is to export the logins to a CSV file and edit this file. You can rename the current logins.json file in the profile folder to loginsOLD.old and import the edited CSV file.

See the note at the bottom of this article about how to enable CSV import via the about:config page.


You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.