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

remove directory and contents

rm -R directory
Comment

How to remove Directories with rm

rm -d directory
Comment

Remove Files and Directories

rm -f filename(s)
rm -r dirname
rm -rf dirname
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 :: how to pull remote changes to local branch 
Shell :: how to Add new commit to the existing Git tag 
Shell :: kubectl apply 
Shell :: rename multiple files in terminal 
Shell :: journalctl size 
Shell :: your system lacks libtoolize 
Shell :: docker sh: react-scripts: not found 
Shell :: windows install composer 
Shell :: git command 
Shell :: redis mac 
Shell :: heroku push non main branch 
Shell :: material-ui 
Shell :: install node in nvm 
Shell :: how to uninstall global babel jest npm 
Shell :: how to make QtWebengine have smooth scrolling 
Shell :: git bash remove files with extension recursively 
Shell :: install pip in pyenv 
Shell :: delete archivelog sysdate-1 
Shell :: COPY failed: file not found in build context or excluded by .dockerignore: stat package.json: file does not exist 
Shell :: qbs linux 
Shell :: git add removed files 
Shell :: install apk adb 
Shell :: how to check date is older than x days in shell script 
Shell :: randomstring npm 
Shell :: ssh login using rsa 
Shell :: remove old docker installs linux mint 
Shell :: ubuntu download 
Shell :: git exclude folder 
Shell :: git delete origin branch 
Shell :: get current path unix 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =