FG

How to recursively delete directory from command line in windows?

Fresh3 days ago
Mar 15, 2026886325 views
Confidence Score1%
1%

Problem

What is the windows equivalent of ?

Error Output

rm -r [directory-name]

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to recursively delete directory from command line in windows?

Low Risk

if I remember my DOS. It seems it's been updated... this is what you want: This removes the directory , with prompts : This does the same, without prompts : Regarding the sudo part of your question, if you need more priviliges, you can first open a new shell as another user account using the command, like this:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment