Example Batch file to Clear Browsing History on Microsoft Edge (MUI / Thumbnail / Icon Cache)

Regular Contributor
@ECHO OFF
SETLOCAL
REM -> (This batch file must be run as administrator to work properly)
REM -> (Place this batch file in the %UserProfile%\Desktop\Win64\Clear folder)
REM -> (Consider naming it Edge_Clear.bat)
REM -> Create a shortcut on the desktop linking to: "%UserProfile%\Desktop\Win64\Clear\Edge_Clear.bat"
REM -> Set the shortcut to start in: "%UserProfile%\Desktop\Win64\Clear"
REM -> Set the shortcut to "Run as administrator" by clicking the "Advanced..." Command button.
REM -> Change the shortcut Run option to "Minimized"
REM -> Rename the shortcut to "Clear_Browser" or "Clear_Browser.lnk" (whatever you have in mind)

REM -> This also requires the Sysinternal's Suite: https://docs.microsoft.com/en-us/sysinternals/downloads/
REM -> Specifically Sdelete: https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete
REM -> NOTE: Make sure you have WinRAR or another tool to extract the archives: https://www.win-rar.com/download.html
REM -> NOTE Sdelete.exe / Sdelete64.exe must be placed in "C:\Windows\System32"

REM (NOTE: There are other options for running this similar to the DISM API, which is the Pseudo Console / ConPTY API -> https://github.com/microsoft/terminal)

REM fsutil behavior set DisableCompression 0
takeown /R /A /F "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db" /D Y
icacls "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db" /reset /t /c /l /q
attrib -R -S -H "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db"
sdelete64 -accepteula -nobanner -r "%UserProfile%\Desktop\Win64\Clear\*.txt"
DIR /B /S /O:-S "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db" > %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_*.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\MEIPreload\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\BrowserMetrics-spare.pma" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\CrashpadMetrics-active.pma" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\AutofillRegex\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\CertificateRevocation\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\TLSDeprecationConfig\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\SSLErrorAssistant\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\GrShaderCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\ShaderCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Crashpad\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Safe Browsing Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Safe Browsing Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\BookmarksBackup\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Mail\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Sync Data\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\VideoDecodeStats\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Platform Notifications\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Feature Engagement Tracker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\GCM Store\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\data_reduction_proxy_leveldb\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\BudgetDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Browser Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\AutofillStrikeDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\GPUCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Storage\ext\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Code Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Session Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\User Data\BrowserMetrics\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Local Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\databases\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\File System\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Service Worker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Sessions\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\Site Characteristics Database\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\IndexedDB\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Default\shared_proto_db\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\MailDB" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\MailDB-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\History Provider Cache" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Extension Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Extension Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Login Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Login Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Media History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Media History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Network Action Predictor" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Network Action Predictor-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Network Persistent State" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\previews_opt_out.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\previews_opt_out.db-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\QuotaManager" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\QuotaManager-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Reporting and NEL" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Reporting and NEL-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Shortcuts" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Shortcuts-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Top Sites" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Top Sites-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\TransportSecurity" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Visited Links" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Web Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Default\Web Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\BookmarksBackup\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Mail\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Sync Data\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\VideoDecodeStats\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Platform Notifications\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Feature Engagement Tracker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\GCM Store\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\data_reduction_proxy_leveldb\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\BudgetDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Browser Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\AutofillStrikeDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\GPUCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Storage\ext\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Code Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Session Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\User Data\BrowserMetrics\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Local Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\databases\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\File System\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Service Worker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Sessions\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Site Characteristics Database\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\IndexedDB\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\shared_proto_db\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\MailDB" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\MailDB-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\History Provider Cache" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Extension Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Extension Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Login Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Login Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Media History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Media History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Network Action Predictor" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Network Action Predictor-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Network Persistent State" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\previews_opt_out.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\previews_opt_out.db-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\QuotaManager" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\QuotaManager-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Reporting and NEL" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Reporting and NEL-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Shortcuts" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Shortcuts-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Top Sites" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Top Sites-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\TransportSecurity" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Visited Links" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Web Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\Guest Profile\Web Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\BookmarksBackup\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Mail\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Sync Data\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\VideoDecodeStats\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Platform Notifications\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Feature Engagement Tracker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\GCM Store\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\data_reduction_proxy_leveldb\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\BudgetDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Browser Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\AutofillStrikeDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\GPUCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Storage\ext\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Code Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Session Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\User Data\BrowserMetrics\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Local Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\databases\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\File System\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Service Worker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Sessions\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Site Characteristics Database\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\IndexedDB\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\shared_proto_db\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\MailDB" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\MailDB-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\History Provider Cache" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Extension Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Extension Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Login Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Login Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Media History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Media History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Network Action Predictor" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Network Action Predictor-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Network Persistent State" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\previews_opt_out.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\previews_opt_out.db-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\QuotaManager" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\QuotaManager-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Reporting and NEL" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Reporting and NEL-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Shortcuts" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Shortcuts-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Top Sites" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Top Sites-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\TransportSecurity" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Visited Links" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Web Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge\User Data\System Profile\Web Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\MEIPreload\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\BrowserMetrics-spare.pma" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\CrashpadMetrics-active.pma" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\AutofillRegex\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\CertificateRevocation\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\TLSDeprecationConfig\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\SSLErrorAssistant\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\GrShaderCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\ShaderCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Crashpad\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Safe Browsing Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Safe Browsing Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\BookmarksBackup\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Mail\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Sync Data\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\VideoDecodeStats\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Platform Notifications\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Feature Engagement Tracker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\GCM Store\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\data_reduction_proxy_leveldb\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\BudgetDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Browser Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\AutofillStrikeDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\GPUCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Storage\ext\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Code Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Session Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\User Data\BrowserMetrics\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Local Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\databases\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\File System\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Service Worker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Sessions\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Site Characteristics Database\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\IndexedDB\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\shared_proto_db\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\MailDB" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\MailDB-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\History Provider Cache" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Extension Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Extension Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Login Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Login Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Media History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Media History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Network Action Predictor" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Network Action Predictor-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Network Persistent State" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\previews_opt_out.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\previews_opt_out.db-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\QuotaManager" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\QuotaManager-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Reporting and NEL" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Reporting and NEL-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Shortcuts" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Shortcuts-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Top Sites" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Top Sites-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\TransportSecurity" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Visited Links" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Web Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Web Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\BookmarksBackup\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Mail\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Sync Data\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\VideoDecodeStats\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Platform Notifications\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Feature Engagement Tracker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\GCM Store\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\data_reduction_proxy_leveldb\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\BudgetDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Browser Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\AutofillStrikeDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\GPUCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Storage\ext\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Code Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Session Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\User Data\BrowserMetrics\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Local Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\databases\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\File System\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Service Worker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Sessions\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Site Characteristics Database\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\IndexedDB\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\shared_proto_db\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\MailDB" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\MailDB-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\History Provider Cache" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Extension Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Extension Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Login Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Login Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Media History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Media History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Network Action Predictor" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Network Action Predictor-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Network Persistent State" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\previews_opt_out.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\previews_opt_out.db-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\QuotaManager" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\QuotaManager-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Reporting and NEL" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Reporting and NEL-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Shortcuts" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Shortcuts-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Top Sites" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Top Sites-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\TransportSecurity" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Visited Links" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Web Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\Guest Profile\Web Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\BookmarksBackup\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Mail\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Sync Data\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\VideoDecodeStats\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Platform Notifications\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Feature Engagement Tracker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\GCM Store\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\data_reduction_proxy_leveldb\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\BudgetDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Browser Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\AutofillStrikeDatabase\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\GPUCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Storage\ext\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Code Cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Session Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\User Data\BrowserMetrics\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Local Storage\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\databases\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\File System\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Service Worker\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Sessions\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Site Characteristics Database\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\IndexedDB\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\shared_proto_db\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\MailDB" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\MailDB-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\History Provider Cache" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Extension Cookies" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Extension Cookies-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Login Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Login Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Media History" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Media History-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Network Action Predictor" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Network Action Predictor-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Network Persistent State" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\previews_opt_out.db" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\previews_opt_out.db-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\QuotaManager" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\QuotaManager-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Reporting and NEL" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Reporting and NEL-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Shortcuts" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Shortcuts-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Top Sites" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Top Sites-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\TransportSecurity" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Visited Links" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Web Data" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%LocalAppData%\Microsoft\Edge Dev\User Data\System Profile\Web Data-journal" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\WebCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\History"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\IECompatCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\IECompatUaCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\IEDownloadHistory*"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\INetCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\INetCookies"
DIR /B /S /O:-S "%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S "%AppData%\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\Caches\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Temp\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Notepad\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\WebCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\WebCache.Old\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\History\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\IECompatCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\IECompatUaCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\IEDownloadHistory\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\INetCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\INetCookies\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%SystemRoot%\Temp\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%SystemRoot%\Downloaded Program Files\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
DIR /B /S /O:-S "%SystemRoot%\Offline Web Pages\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt
takeown /R /A /F "%ProgramData%\USOShared" /D Y
icacls "%ProgramData%\USOShared" /reset /t /c /l /q
DIR /B /S /O:-S "%ProgramData%\USOShared\Logs\*.*" >> %UserProfile%\Desktop\Win64\Clear\Edge.txt

takeown /R /A /F "%SystemRoot%\Logs" /D Y
icacls "%SystemRoot%\Logs" /reset /t /c /l /q
DEL /S /Q "%SystemRoot%\Logs\*.*"
DEL /S /Q "%SystemRoot%\security\logs\*.*"
DEL /S /Q "%SystemRoot%\System32\winevt\Logs\*.*"
DEL /S /Q "%ProgramData%\Microsoft\Windows\WER\*.*"
DEL /Q "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.edb"
DEL /Q "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.jfm"

cd "%UserProfile%\Desktop\Win64\Clear"

taskkill /f /im explorer.exe

REM NOTE: The Secure Preferences / Preferences files actually contain DNS information that is not cleared when the browser closes
REM NOTE: To use this properly, you have to manually copy BOTH files AFTER you install / reinstall / update or make ANY changes

REM COPY /Y "%UserProfile%\Desktop\Win64\Clear\Edge\Preferences" "%LocalAppData%\Microsoft\Edge\User Data\Default"
REM COPY /Y "%UserProfile%\Desktop\Win64\Clear\Edge\Secure Preferences" "%LocalAppData%\Microsoft\Edge\User Data\Default"
REM COPY /Y "%LocalAppData%\Microsoft\Edge\User Data\Default\Preferences" "%UserProfile%\Desktop\Win64\Clear\Edge"
REM COPY /Y "%LocalAppData%\Microsoft\Edge\User Data\Default\Secure Preferences" "%UserProfile%\Desktop\Win64\Clear\Edge"

REM COPY /Y "%UserProfile%\Desktop\Win64\Clear\Edge\Preferences" "%LocalAppData%\Microsoft\Edge Dev\User Data\Default"
REM COPY /Y "%UserProfile%\Desktop\Win64\Clear\Edge\Secure Preferences" "%LocalAppData%\Microsoft\Edge Dev\User Data\Default"
REM COPY /Y "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Preferences" "%UserProfile%\Desktop\Win64\Clear\Edge"
REM COPY /Y "%LocalAppData%\Microsoft\Edge Dev\User Data\Default\Secure Preferences" "%UserProfile%\Desktop\Win64\Clear\Edge"

for /F "usebackq tokens=*" %%Z in (Edge.txt) do CMD /Q /C START /MIN /REALTIME sdelete64 -nobanner -r "%%Z"
sdelete64 -nobanner -r Edge.txt

powershell -noprofile -Command "& {Set-Clipboard}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit' -Name 'LastKey'}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit' -Name 'View'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache'}"
powershell -noprofile -Command "& {Remove-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\ImmutableMuiCache' -Recurse -Force}"
powershell -noprofile -Command "& {New-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\ImmutableMuiCache'}"
powershell -noprofile -Command "& {Remove-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\MuiCache' -Recurse -Force}"
powershell -noprofile -Command "& {New-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\MuiCache'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Adobe\Acrobat Reader\DC\AVGeneral\cRecentFiles'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Adobe\Acrobat Reader\DC\AVGeneral\cRecentFolders'}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Notepad' -Name 'searchString'}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Notepad' -Name 'replaceString'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery'}"
powershell -noprofile -Command "& {New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery' -Name 'DisableSearchBoxSuggestions' -PropertyType DWord -Value '00000001'}"
powershell -noprofile -Command "& {Clear-RecycleBin -Force}"

%SYSTEMROOT%\System32\CMD.EXE /Q /C START /REALTIME explorer.exe

MOVE NUL 2>&0
2 Replies

@Mousefluff

Another example of a standalone batch file for clearing browser history (Firefox) ->

@ECHO OFF
SETLOCAL
REM -> (This batch file must be run as administrator to work properly)
REM -> (Place this batch file in the %UserProfile%\Desktop\Win64\Clear folder)
REM -> (Consider naming it Edge_Clear.bat)
REM -> Create a shortcut on the desktop linking to: "%UserProfile%\Desktop\Win64\Clear\Firefox_Clear.bat"
REM -> Set the shortcut to start in: "%UserProfile%\Desktop\Win64\Clear"
REM -> Set the shortcut to "Run as administrator" by clicking the "Advanced..." Command button.
REM -> Change the shortcut Run option to "Minimized"
REM -> Rename the shortcut to "Clear_Firefox" or "Clear_Firefox.lnk" (whatever you have in mind)

REM -> This also requires the Sysinternal's Suite: https://docs.microsoft.com/en-us/sysinternals/downloads/
REM -> Specifically Sdelete: https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete
REM -> NOTE: Make sure you have WinRAR or another tool to extract the archives: https://www.win-rar.com/download.html
REM -> NOTE Sdelete.exe / Sdelete64.exe must be placed in "C:\Windows\System32"

REM (NOTE: There are other options for running this similar to the DISM API, which is the Pseudo Console / ConPTY API -> https://github.com/microsoft/terminal)

REM fsutil behavior set DisableCompression 0
takeown /R /A /F "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db" /D Y
icacls "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db" /reset /t /c /l /q
attrib -R -S -H "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db"
sdelete64 -accepteula -nobanner -r "%UserProfile%\Desktop\Win64\Clear\*.txt"
DIR /B /S /O:-S "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_*.db" > %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%Userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_*.db" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt

DIR /B /S /O:-S "%LocalAppData%\Mozilla\Firefox\Profiles\*.*" > %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%AppData%\Mozilla\Firefox\Crash Reports\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
cd "%AppData%\Mozilla\Firefox\Profiles\*.default-release"
DIR /B /S /O:-S "shader-cache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "sessionstore-backups\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "security_state\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "bookmarkbackups\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "datareporting\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "crashes\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "weave\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "permissions.sqlite" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "content-prefs.sqlite" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "cookies.sqlite" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "key4.db" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "logins.json" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "persdict.dat" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "formhistory.sqlite" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "webappsstore.sqlite" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "chromeappsstore.sqlite" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "handlers.json" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "sessionstore.jsonlz4" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt

attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\WebCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\History"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\IECompatCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\IECompatUaCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\IEDownloadHistory*"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\INetCache"
attrib -R -S -H /S /D "%LocalAppData%\Microsoft\Windows\INetCookies"
DIR /B /S /O:-S "%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S "%AppData%\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\Caches\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Temp\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Notepad\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\WebCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\WebCache.Old\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\History\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\IECompatCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\IECompatUaCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\IEDownloadHistory\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\INetCache\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%LocalAppData%\Microsoft\Windows\INetCookies\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%SystemRoot%\Temp\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%SystemRoot%\Downloaded Program Files\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
DIR /B /S /O:-S "%SystemRoot%\Offline Web Pages\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt
takeown /R /A /F "%ProgramData%\USOShared" /D Y
icacls "%ProgramData%\USOShared" /reset /t /c /l /q
DIR /B /S /O:-S "%ProgramData%\USOShared\Logs\*.*" >> %UserProfile%\Desktop\Win64\Clear\Firefox.txt

takeown /R /A /F "%SystemRoot%\Logs" /D Y
icacls "%SystemRoot%\Logs" /reset /t /c /l /q
DEL /S /Q "%SystemRoot%\Logs\*.*"
DEL /S /Q "%SystemRoot%\security\logs\*.*"
DEL /S /Q "%SystemRoot%\System32\winevt\Logs\*.*"
DEL /S /Q "%ProgramData%\Microsoft\Windows\WER\*.*"
DEL /Q "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.edb"
DEL /Q "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.jfm"

cd "%UserProfile%\Desktop\Win64\Clear"

taskkill /f /im explorer.exe

for /F "usebackq tokens=*" %%X in (Firefox.txt) do CMD /Q /C START /MIN /REALTIME sdelete64 -nobanner -r "%%X"
sdelete64 -nobanner -r Firefox.txt

powershell -noprofile -Command "& {Set-Clipboard}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit' -Name 'LastKey'}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit' -Name 'View'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache'}"
powershell -noprofile -Command "& {Remove-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\ImmutableMuiCache' -Recurse -Force}"
powershell -noprofile -Command "& {New-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\ImmutableMuiCache'}"
powershell -noprofile -Command "& {Remove-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\MuiCache' -Recurse -Force}"
powershell -noprofile -Command "& {New-Item -Path 'HKCU:\SOFTWARE\Classes\Local Settings\MuiCache'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Adobe\Acrobat Reader\DC\AVGeneral\cRecentFiles'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Adobe\Acrobat Reader\DC\AVGeneral\cRecentFolders'}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Notepad' -Name 'searchString'}"
powershell -noprofile -Command "& {Clear-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Notepad' -Name 'replaceString'}"
powershell -noprofile -Command "& {Clear-Item -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery'}"
powershell -noprofile -Command "& {New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery' -Name 'DisableSearchBoxSuggestions' -PropertyType DWord -Value '00000001'}"
powershell -noprofile -Command "& {Clear-RecycleBin -Force}"

%SYSTEMROOT%\System32\CMD.EXE /Q /C START /REALTIME explorer.exe

MOVE NUL 2>&0

 

@Mousefluff

DISCLAIMER: This could take several minutes to finish on some computers. It is only useful if you want to remove most traces, if not all, of any activity on your browser, aside from diagnostic information, various other hidden logging features which do not exist in other Chromium browsers. This will also wipe out saved passwords / logins, erase the pinned Quick Access entries in Windows Explorer (Edit this script to your liking to enable or disable various features.) You may also have to whitelist Powershell and Sdelete / Sdelete64 with your any AV tools / software that you have installed (it often flags this as a malicious script, which is a false positive. When it restarts explorer, your system tray icons may look different if you have some types of 3rd-Party software installed. On my computer practically nothing changes in that regard, unless the program wasn't written to periodically update the icon in the system tray. This is the only way to securely erase the thumbnail / icon cache, although that can also be disabled.) The folder layout is similar to most other Chromium-based browsers, and could easily be changed to work in another browser. The only issue is clearing hidden DNS information from within the Preferences / Secure Preferences file, which would require you to manually update / copy / re-copy it every time you make a change to the browser settings or profile (in any way.) If that doesn't matter, this script works without that, although clearing the built-in DNS entries / cache can also slow down the browser, but increases privacy.