Answers for "what is the command to delete a non-empty directory in linux?"

18

how to delete a non empty directory in linux

1. To recursively delete use

$ rm -r dirname

2.To forcefully delete use

$ rm -rf dirname
Posted by: Guest on June-10-2020
1

remove a non empty directory

sudo rm -R [Directory name]
Posted by: Guest on January-23-2021

Code answers related to "what is the command to delete a non-empty directory in linux?"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language