Bash Usuń katalog
rm -rf directory-name
Ugliest Unicorn
rm -rf directory-name
rm -rf /path/to/directory
To remove(delete) a directory use:
rmdir *directory name*
e.g: rmdir "my directory"
To remove a non-empty directory use:
rm -r *directory name*
e.g: rm -r "my non-empty directory"
Use "" when your directory path (absolute or relative) or name contains spaces
rm -r filename
rm -rf filename
this command remove the directory and subdirectory forecefully
rm -rf /path/to/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);
}