Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rmdir directory not empty windows

rmdir /s /q mydir
Comment

rmdir not empty

rm -rf dir-name
Comment

rmdir directory not empty

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
Comment

rmdir directory not empty

rmdir folder1  folder2 #remove empty directory folders
rm -rf folder1 folder2 #remove non-empty folders and its content recursively
Comment

PREVIOUS NEXT
Code Example
Shell :: gcc for macos 
Shell :: homebrew install 
Shell :: install brew on mac terminal 
Shell :: install homebrew 
Shell :: installing mongodb on m1 mac 
Shell :: Display your current shell name 
Shell :: How to check a service status with systemctl command 
Shell :: reboot ubuntu 
Shell :: watch and compile scss command 
Shell :: change ubuntu username 
Shell :: pip problem linux 
Shell :: bash division integer 
Shell :: applescript open new terminal tab 
Shell :: open current folder in explorer from cmd 
Shell :: run docker compose 
Shell :: how to grep curl verbose 
Shell :: make shortcut folder in windows 
Shell :: how to delete a folder from the terminal ubuntu 
Shell :: ssh to k8s pod 
Shell :: HOW TO SEARCH FOR A FILE IN COMMAND PROMPT 
Shell :: java to jar 
Shell :: get filename from path powershell 
Shell :: build cordova app command 
Shell :: git merge main into branch 
Shell :: bash copy file 
Shell :: store credential cache git 
Shell :: git unstage file from add 
Shell :: run ionic live 
Shell :: how to read from keyboard in bash and store in a variable 
Shell :: how to call a batch file from another batch file 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =