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 :: Sticky notes for Linux(Ubuntu) 
Shell :: stop processes on port 3000 
Shell :: git bash set global username and password 
Shell :: extract tgz from ubuntu terminal 
Shell :: pinterest clone github 
Shell :: ! [rejected] main - main 
Shell :: how to install zlib 
Shell :: reset git project 
Shell :: graphql install 
Shell :: change user to sudo kali 
Shell :: eslint install command 
Shell :: linux webcam command line 
Shell :: change remote url github 
Shell :: Command to display a process running in windows powershell 
Shell :: shared folder virtualbox ubuntu 
Shell :: git force rebase abort 
Shell :: how to allow traffic on port 8080 in centos 7 
Shell :: wsl System has not been booted with systemd as init system 
Shell :: Install docker with apt command 
Shell :: dos delete 
Shell :: delete git remote heroku 
Shell :: ubuntu install apache 
Shell :: nvm zsh command not found 
Shell :: how to check current status of apache2 ubuntu 18 
Shell :: github repo with most issues 
Shell :: unable to locate a java runtime that supports javaws 
Shell :: How to remove a snap package on Ubuntu 
Shell :: change ownership of a file linux to user 
Shell :: check if a port is working 
Shell :: gcloud switch projects 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =