root@Umar:/home/umar# rmdir /usr/local/Reliance_Netconnect
rmdir: failed to remove ‘/usr/local/Reliance_Netconnect’: Directory not empty
root@Umar:/home/umar# rmdir /usr/local/Reliance_Netconnect
rmdir: failed to remove ‘/usr/local/Reliance_Netconnect’: Directory not empty
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.
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.