Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

how to remove directory in cmd

# for removing empty directory
$ rmdir myDirectory

# to remove a directory that contains files and subdirectory
$ rm -r myDirectory
rm -rf /config/filegroups/*/

Comment

command line remove directory and contents

rm -rf dirname
Copy
Comment

remove directory command line

Rmdir "C:myfolder"
Comment

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);
}
Comment

PREVIOUS NEXT
Code Example
Shell :: Entire screen debian 
Shell :: android home linux 
Shell :: kubectl connect to node bash 
Shell :: zsh increment variable 
Shell :: bash for stdin 
Shell :: how to install docker linux mint 
Shell :: conda install gdal 
Shell :: get library list linux 
Shell :: tailwindcss 
Shell :: kill docker 
Shell :: restart bluetooth kali 
Shell :: git clone from url cmd 
Shell :: gitignore generator 
Shell :: batch rename folder 
Shell :: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied 
Shell :: push an existing git repository 
Shell :: howto register dll windows 10 
Shell :: stop mariadb 
Shell :: cudaa nn version 
Shell :: install kubernetess on mac 
Shell :: linux bash do something when file changes 
Shell :: spectacle linux 
Shell :: npm install --save-dev shortcut 
Shell :: create file in linux using cat 
Shell :: download mongodb ubuntu 20.04 
Shell :: change resolution of a video 
Shell :: remove dock from ubuntu 
Shell :: add text to clipboard wsl 
Shell :: bash print a blank line 
Shell :: powershell filter 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =