root@Umar:/home/umar# rmdir /usr/local/Reliance_Netconnect
rmdir: failed to remove ‘/usr/local/Reliance_Netconnect’: Directory not empty
Asked
Active
Viewed 394 times
0
amc
- 7,292
A Umar Mukthar
- 763
2 Answers
2
To delete a directory that is not empty, you need to use rm -rf.
This is basic linux, and so is using sudo instead of a root account; you're setting yourself up for disaster. Be careful.
Marty Fried
- 18,944
1
You must have an empty directory for rmdir to work.
The typical way to recursively delete a directory and all of it's contents is with the rm -r command where the -r is short for recursive.
wxl
- 1,026