Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.
You can try using the DISM to do this. But before that, you will have to use the DISM command so you can mount the install.wim:
DISM /Mount-Image /ImageFile:install.wim /Index:1 /MountDir:mount
After that, you can use this command to dleet the folder:
Del /F /S /Q mount[DELETED]
You can use this command so you can unmount the and save the changes using this command:
DISM /Unmount-Image /MountDir:mount /Commit
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.