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

How do you delete a profile using commandline

  • 5 replies
  • 1 has this problem
  • 318 views
  • Last reply by ikhalil

more options

How do I use commandline to remove a profile. I know how to do it via the profile manager but need to automate it via commandline

How do I use commandline to remove a profile. I know how to do it via the profile manager but need to automate it via commandline

Chosen solution

You can only create a profile using the command line, you can't remove a profile including files. Since removing a profile involves updating profiles.ini and possibly removing files in two locations (AppData\Roaming and AppData\Local) you will likely have to use the Profile Manager to remove a profile easily and properly. You can either use the Profile Manager or use the about:profiles page to manage profiles.

Read this answer in context 👍 0

All Replies (5)

more options

See if this is what your looking for : https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options

Please let us know if this solved your issue or if need further assistance.

more options

There seems to be no option to delete profile in https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options

more options

Maybe this one then (sorry do not have time o read them all) http://kb.mozillazine.org/Bypassing_the_Profile_Manager


Please let us know if this solved your issue or if need further assistance.

more options

Chosen Solution

You can only create a profile using the command line, you can't remove a profile including files. Since removing a profile involves updating profiles.ini and possibly removing files in two locations (AppData\Roaming and AppData\Local) you will likely have to use the Profile Manager to remove a profile easily and properly. You can either use the Profile Manager or use the about:profiles page to manage profiles.

more options

I found removing the files worked fine and recreating it with -CreateProfile option worked