Delete Microsoft Edge Browsing History

In this tutorial, I will show you how to delete Microsoft Edge browsing history using the Windows command line. This method is useful if you want to automate browser cleanup, troubleshoot Edge issues, or quickly remove cached data without opening the browser.

Microsoft Edge is Chromium based, which means browsing data is stored locally and can be removed manually using simple commands.

Delete Microsoft Edge Browsing History Using Command Line

Important: Microsoft Edge must be completely closed before running these commands.

  1. Click Start -> Run
  2. Type cmd
  3. Click OK

Close Microsoft Edge

taskkill /IM msedge.exe /F

Delete Microsoft Edge Cache

rd /s /q "%LocalAppData%\Microsoft\Edge\User Data\Default\Cache"

Delete Microsoft Edge Browsing History

del "%LocalAppData%\Microsoft\Edge\User Data\Default\History"

Delete Cookies and Site Data

rd /s /q "%LocalAppData%\Microsoft\Edge\User Data\Default\Cookies"

Create a Batch File to Automate Edge History Deletion

You can automate this process by creating a simple batch file.

  1. Create a new text file on your desktop
  2. Open it with Notepad or another text editor
  3. Paste the following code into the file:
@echo off
cls
title Delete Microsoft Edge Browsing History
echo Started at %time%
echo.

taskkill /IM msedge.exe /F

rd /s /q "%LocalAppData%\Microsoft\Edge\User Data\Default\Cache"
del "%LocalAppData%\Microsoft\Edge\User Data\Default\History"

echo.
echo Microsoft Edge history deleted
echo Ended at %time%
pause
exit
  1. Save the file as delete-edge-history.bat
  2. Double click the file to run it

That is all there is to it. You can now quickly delete Microsoft Edge browsing history manually or automate the process using a batch file.