remove a directory

# To remove an Empty directory, Use
$ sudo rmdir folder-name

# If it is not a empty directory, then rm command can be used
$ sudo rm -rf folder-name

Deleting or removing a directory or folder

you can delete a folder using rmdir:
The folder you delete must be empty.



$ mkdir fruits
$ rmdir fruits



You can also delete multiple folders at once:


$ mkdir fruits cars
$ rmdir fruits cars



To delete folders with files in them, we'll use the more generic 'rm' command
which deletes files and folders, using the
-rf options:



$ rm -rf fruits cars



Be careful as this command does not ask for confirmation and it will
immediately remove anything you ask it to remove.
There is no bin when removing files from the command line, and recovering
lost files can be hard.

remove directory command line

Rmdir "C:\myfolder"

Delete Directory

//delete directory
string deleteDirectoryPath = @"C:\Users\Yogeshkumar Hadiya\Desktop\DirectoryHandling";
if (Directory.Exists(deleteDirectoryPath))
{
    Directory.Delete(deleteDirectoryPath);
    Console.WriteLine("Directory deleted at " + createDirectoryPath);
}
else
{
    Console.WriteLine("Directory not found at " + createDirectoryPath);
}

C#相关代码片段

stackpanel opacity mask from resources wpf

how to code

c# array isn't working

hydrogen fuels

generate parentheses

random class

reverse array

translator

stack over flow

prime number algorithm

palindrome

palindromes

rigidbody velocity

randomise array

shuffle array

fisher yates shuffle

prime numbers

generate prime numbers

rest api in c#

poisson distribution

ms transform

wetter warendorf

querstring fromat asp.net c#

null objects

skrivetænking

how to close a popup wpf c# on click event

Function delegate

next permutation

CullingGroup

händelsereportage

Delegates in UntiyC#

getcomponent

class combining

tee into file

reverse integer

how long dose it take for formate a currupt USB?

team fortress

card caption

math round to next integer c#

calculator

skrivetækning

remove element

class merging

dadar pincode

ASP.MVC display image from SqlServer

hive survive

c# delegates

wpf onpropertychanged not working

loop through dictionary

get the next letter after specific character in c#

how to make character respawn if touches sprite c#

snake spielen

mental retardation

palindrome number

download file

c# language

static variables

codegrepper

tomatch jest

linkedlist sorting

index sort

multidimensional meaning

Boolean Literals

Working with null values

samsung sam

dsharp emoji from string

print bitmap company logo c sharp

gersener waves

www.elking.net

active form

add rotation

texture matrix

ip address

delete directory

inheritance

uppercase letter

binary tree

assert throw

triangle area

ado stands for