Forum Discussion
Edge SxS Folder
Is it safe to remove old build folders located in the appdata\Edge SxS\Application folder?
I have many in there and its about 9GB right now.
18 Replies
- leehuFormer Employee
Yes, it should be completely find to delete the older versions. But before you do, if you would, please share your updater and install logs. You can find them in the following places (some may be missing):
%ALLUSERSPROFILE%\Microsoft\EdgeUpdate\Log\MicrosoftEdgeUpdate.log%LOCALAPPDATA%\Temp\MicrosoftEdgeUpdate.log%TEMP%\msedge_installer.log%SystemRoot%\TEMP\msedge_installer.log
Thanks for trying Edge!
--Lee
- leehuFormer Employee
BumSkull Re: the log. Sorry missed the log lines posted previously. Nonetheless getting the full log gives a history and phasing of what may be keeping the files open so if you have those to share in the future please do. But you did a nice job on honing in on what seems to be the issue -- thank you.
Looks like you're developing with WebView and that the webview app is keeping parts of edge locked. Can you confirm? Keeping these old files is not desired behavior, but is a new feature and the WebView team is still working out the kinks.
Thanks much,
-- Lee
- Elliot KirkFormer Employee
Hi BumSkull, This is really not right. Can you please go to https://microsoftedgesupport.microsoft.com and open a support ticket? You will likely be asked to send us the
"%USERPROFILE%\appdata\local\temp\msedge_installer.log" file so that we can understand what has been going on. It is also safe to delete all but the latest 2 versions. I will let out support folks know to look out for this and they will be able to help you. Thank you for alerting us to this issue.
- BumSkullIron Contributor
Elliot Kirk Thanks I just submitted a ticket. Ill be happy to provide the file. Here are a few lines from that file that are basically repeated hundreds of times over.
*\AppData\Local\Microsoft\Edge SxS\Application\76.0.175.0\EBWebView\x64\embeddedbrowserwebview.dll: The process cannot access the file because it is being used by another process. (0x20)
[0610/083307.532:WARNING:delete_old_versions.cc(107)] Failed to delete stray directory **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.175.0: The operation completed successfully. (0x0)
[0610/083307.533:WARNING:delete_old_versions.cc(99)] Attempting to delete stray directory **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.176.0
[0610/083307.541:WARNING:delete_old_versions.cc(218)] Failed to delete locked file **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.176.0\EBWebView\x64\embeddedbrowserwebview.dll: The process cannot access the file because it is being used by another process. (0x20)
[0610/083307.542:WARNING:delete_old_versions.cc(107)] Failed to delete stray directory **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.176.0: The operation completed successfully. (0x0)
[0610/083307.542:WARNING:delete_old_versions.cc(99)] Attempting to delete stray directory **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.181.0
[0610/083307.551:WARNING:delete_old_versions.cc(218)] Failed to delete locked file **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.181.0\EBWebView\x64\embeddedbrowserwebview.dll: The process cannot access the file because it is being used by another process. (0x20)
[0610/083307.552:WARNING:delete_old_versions.cc(107)] Failed to delete stray directory **PII**\AppData\Local\Microsoft\Edge SxS\Application\76.0.181.0: The operation completed successfully. (0x0)- sambul95Iron Contributor
In https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer, put embeddedbrowserwebview.dll into Find Handle or DLL menu item's Search field, and see what process uses it? Try killing that process and see if its possible to uninstall all Edge versions after that by default uninstaller or updater.
- sambul95Iron Contributor
For starters, try Edge web installer to avoid this mess instead of stand alone installers. 😂 As to the cleanup, try to uninstall the last release, then use Everything Search to find the remnants and delete. Search and cleanup Registry too.