Answers for "how to delete directory"

4

linux remove folder and all his content

rm -rf /path/to/directory/*
Posted by: Guest on February-29-2020
6

remove directory and contents linux

rm -r path
Posted by: Guest on June-27-2020
0

How to remove Directories with rm

rm -d directory
Posted by: Guest on November-23-2021
0

Delete Directory

//delete directory
string deleteDirectoryPath = @"C:UsersYogeshkumar HadiyaDesktopDirectoryHandling";
if (Directory.Exists(deleteDirectoryPath))
{
    Directory.Delete(deleteDirectoryPath);
    Console.WriteLine("Directory deleted at " + createDirectoryPath);
}
else
{
    Console.WriteLine("Directory not found at " + createDirectoryPath);
}
Posted by: Guest on December-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language