Developing and testing features or extensions for Microsoft Edge
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
After creating several new Edge profiles in Windows 11, we need to find a way to delete them at runtime programmatically.
Is there anyway it can be done programmatically such as from command line?
I can see newly created Edge profiles in Windows registry here (image attached):
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Edge\Profiles
I am not sure it is the right way to delete profiles by removing those registry entries.
Our Edge version is:
Version 126.0.2592.68 (Official build) (64-bit)
Your help will be greatly appreciated.
Developing and testing features or extensions for Microsoft Edge
Answer accepted by question author
Hi @Zhu, Ligong,
Unfortunately, profiles can't be deleted via registry settings. Removing the listed entries does not delete the profiles.
You can only remove the profile folders at %localappdata%\Microsoft\Edge\User Data.
Please note if you try to delete the folders while Microsoft Edge is running, you won't be permitted to do that. You need to kill all msedge.exe instances first. A useful command line would be taskkill /f /im msedge.exe.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Shijie Li