Solved

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

Posted on 2015-01-17
3
919 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

758 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

18 Experts available now in Live!

Get 1:1 Help Now