taskkill /f /im msedgewebview2.exe >nul 2>&1

REG DELETE "HKCR\Microsoft.WebView2" /F 2>nul
REG DELETE "HKCR\WebView2" /F 2>nul
REG DELETE "HKCR\webview2" /F 2>nul
REG DELETE "HKCR\microsoft-webview2" /F 2>nul
REG DELETE "HKLM\SOFTWARE\RegisteredApplications" /V "Microsoft Edge WebView2" /F 2>nul
REG DELETE "HKCU\SOFTWARE\RegisteredApplications" /V "Microsoft Edge WebView2" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone\NonPackaged\C:#Program Files (x86)#Microsoft#EdgeWebView#Application#msedgewebview2.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam\NonPackaged\C:#Program Files (x86)#Microsoft#EdgeWebView#Application#msedgewebview2.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge WebView2" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge WebView2" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedgewebview2.exe" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedgewebview2.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msedgewebview2.exe" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msedgewebview2.exe" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4297-9B6A-0Cb0F6B6B97C}" /F 2>nul
REG DELETE "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4297-9B6A-0Cb0F6B6B97C}" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" /F 2>nul
REG DELETE "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" /F 2>nul
REG DELETE "HKLM\SOFTWARE\Microsoft\EdgeWebView" /F 2>nul
REG DELETE "HKCU\SOFTWARE\Microsoft\EdgeWebView" /F 2>nul
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" /f /va

IF EXIST "%ProgramFiles(x86)%\Microsoft\EdgeWebView" (((TAKEOWN /R /A /F "%ProgramFiles(x86)%\Microsoft\EdgeWebView" /D Y)&(ICACLS "\\?\%ProgramFiles(x86)%\Microsoft\EdgeWebView" /RESET /T /C /L /Q)) >nul 2>&1)
((IF EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" %SDEL_EXT_% -ACCEPTEULA -Q -R -S -NOBANNER "\\?\%ProgramFiles(x86)%\Microsoft\EdgeWebView")&(IF NOT EXIST "%SystemRoot%\System32\%SDEL_EXT_%.EXE" RMDIR /S /Q "\\?\%ProgramFiles(x86)%\Microsoft\EdgeWebView" 2> nul))