Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

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

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
已解决 已存档

How do you delete a profile using commandline

ikhalil 已回复
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
定位到答案原位置

选择的解决方案

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.

所有回复 (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.

选择的解决方案

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