Would like to delete this folder and file:

DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\Default*.* /F /S
DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\First

Trying to execute in a batch file they don't work as expected. (Default folder still there after running).

Anything is wrong?

These files are from Google Chrome, so it's a just way to reset the browser by command prompt.

1 Answer 1


The Default folder is still there after running the batch file

DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\Default*.* /F /S

You are missing a \ after Default.

The following command should work:

DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\Default\*.* /F /S

But I don't want to be prompted

Add /Q to set "Quiet mode, do not give a Yes/No Prompt before deleting."

DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\Default\*.* /F /S /Q

But I want to remove the directories as well.

Use rd to remove the directories

RD %LOCALAPPDATA%\Google\Chrome\"User Data"\Default /s /q

Further Reading

  • Most of the settings are saved in Preferences file in that default directory.
    – Biswapriyo
    Jul 29, 2017 at 20:53
  • @Biswa So? The OP said "it's a just way to reset the browser by command prompt". Resetting the browser is a lot more than just preferences.
    – DavidPostill
    Jul 29, 2017 at 20:55
  • So alternatively, to reset user data, one may delete only the Preferences file, no need to remove whole default folder :)
    – Biswapriyo
    Jul 29, 2017 at 20:58
  • 1
    @Biswa The OP wants to completely reset the browser. That folder also contains the cache, extension, extension settings, session storage, cookies, history etc ... which are all user data.
    – DavidPostill
    Jul 29, 2017 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.