Forum Discussion
How can I clear or delete browsing history on Windows 10?
What about Creating Your Own Batch File Cleaner? Using a batch file to clear browsing history on Windows 10 can be a convenient and free way to automate the process. Here's how you can create your own batch file to clear browsing history for common browsers like Chrome, Firefox, and Edge:
1. Create a Batch File
Open Notepad and input commands to clear browsing history. Here's an example script:
@echo off
echo Clearing browsing data...:: Clear Google Chrome
rmdir /s /q "%localappdata%\Google\Chrome\User Data\Default\Cache"
del /f /s /q "%localappdata%\Google\Chrome\User Data\Default\History"
del /f /s /q "%localappdata%\Google\Chrome\User Data\Default\Cookies":: Clear Mozilla Firefox
rmdir /s /q "%APPDATA%\Mozilla\Firefox\Profiles\*.default-release\cache2"
del /f /s /q "%APPDATA%\Mozilla\Firefox\Profiles\*.default-release\places.sqlite":: Clear Microsoft Edge
rmdir /s /q "%localappdata%\Microsoft\Edge\User Data\Default\Cache"
del /f /s /q "%localappdata%\Microsoft\Edge\User Data\Default\History"
del /f /s /q "%localappdata%\Microsoft\Edge\User Data\Default\Cookies"echo Browsing data cleared.
pause
2. Save the File
Save the file with a .bat extension, e.g., ClearBrowsingData.bat.
3. Run as Administrator
Right-click the batch file and select Run as administrator to ensure it has the necessary permissions.