“Supprimer le répertoire” Réponses codées

répertoire de suppression de bash

rm -rf directory-name
Ugliest Unicorn

Linux supprime le dossier et tout son contenu

rm -rf /path/to/directory
Gentle Gibbon

Comment supprimer le répertoire

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

supprimer le répertoire de Linux

rm -r filename

rm -rf filename

this command remove the directory and subdirectory forecefully
Mr. Samy

supprimer le répertoire Linux

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

Supprimer le répertoire

//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

Réponses similaires à “Supprimer le répertoire”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code