Solved

Is there a Windows Cmd line euqivalent of rm -fr ?

Posted on 2015-01-17
3
949 Views
Last Modified: 2015-01-20
If I am running in Windows 200, is there a command line euqivalent of the following linux command

rm -fr

That will delete a directory and all of its contents ?

Thanks
0
Comment
Question by:Anthony Lucia
3 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 167 total points
ID: 40555199
rd "X:\dirname" /s

Add /q if you don't want to be asked if you really want to delete that folder.

HTH,
Dan
0
 
LVL 11

Assisted Solution

by:Wilder1626
Wilder1626 earned 167 total points
ID: 40555204
del in windows is equivalent of rm command in Linux

You may want to look at this link: Windows and Unix command line equivalents
0
 
LVL 12

Assisted Solution

by:Sommerblink
Sommerblink earned 166 total points
ID: 40555226
rmdir /s /q [directoryName]

The /q prevents asking questions on whether you're sure.

Also, rd and rmdir are equivalent.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now