“Hapus Direktori” Kode Jawaban

Bash Remove Directory

rm -rf directory-name
Ugliest Unicorn

Linux menghapus folder dan semua isinya

rm -rf /path/to/directory
Gentle Gibbon

cara menghapus direktori

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
Stormbreaker the loner

Hapus Direktori dari Linux

rm -r filename

rm -rf filename

this command remove the directory and subdirectory forecefully
Mr. Samy

Hapus Direktori Linux

rm -rf /path/to/directory/*
Breakable Bug

Hapus Direktori

//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);
}
YogeshHadiya33

Jawaban yang mirip dengan “Hapus Direktori”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya