This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

Batch remove obsolete logins

  • 2 àwọn èsì
  • 1 ní ìṣòro yìí
  • 8 views
  • Èsì tí ó kẹ́hìn lọ́wọ́ cor-el

more options

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)

more options

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);}
}

more options

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.