Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus
Résolu Archivé

How do you delete a profile using commandline

ikhalil

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
Lire cette réponse dans son contexte

Solution choisie

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.

Toutes les réponses (5)

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.

There seems to be no option to delete profile in https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_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.

Solution choisie

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.

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