Solved

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

Posted on 2015-01-17
3
2,041 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 35

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

738 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