rmdir with files code example
Example 1: 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
Example 2: ubuntu remove directory
rm -R folder-name
Example 3: bash remove directory
rm -rf directory-name
Example 4: rmdir command
#usage:
rmdir <dir>
#it removes <dir>
#but if it isnt empty it will not work
#so do:
rmdir /S <dir>
#--ignore-fail-on-non-empty for linux
#to remove confirmation
rmdir /Q <dir>
#it is abbreviated to rd in cmd(windows) like all commands:)
rmdir /? #for help
#the last two are windows specific