Solved

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

Posted on 2015-01-17
3
2,264 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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.
Suggested Courses

632 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