How to delete folder from command line in Windows 10 ?

Published on July 28, 2016 by abundantcode

Filed under Windows

Last modified July 28, 2016

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 4539 times

You can delete a directory or folder using the command "rmdir" from commandline in Windows 10.

How to delete folder from command line in Windows 10 ?

The syntax for deleting the folder in windows 10 is

rmdir <name of the directory>

Incase you want to delete the non-empty folder , you can use the parameter /s for the rmdir command.

Below is an example demonstrating the deletion of the directory in windows.

D:\>rmdir abundantcode1
The directory is not empty.

D:\>rmdir /s abundantcode1
abundantcode1, Are you sure (Y/N)? Y
The directory is not empty.

D:\>

image

Leave a Comment


x

You might be Interested in these Posts

How to delete user account from command line in Windows 10 ?

You can delete a user account from command line in Windows 10 using the net user command and specify...

How to add new user account from command line in Windows 10 ?

You can add a new user account in Windows 10 using command prompt using the net user command and pas...

How to open display settings from command line in Windows 10 ?

The display properties can be found in the settings app in Windows 10 which lets the users to config...