delete command in linux
I'm trying to delete a folder, its contents, all the sub folders and all their contents etc with one command.I've been looking at: http://www.ss64.com/bash/rm.html
================================================
rmdir
Remove folder(s), if they are empty.
SYNTAX
rmdir [options]... folder...
OPTIONS
--ignore-fail-on-non-empty
ignore each failure that is solely because the
directory is non-empty
-p, --parents remove explicit parent directories if being emptied
--verbose output a diagnostic for every directory processed
--help display this help and exit
--version output version information and exit
================================================
and this one:
================================================
rm
Remove files (delete/unlink)
SYNTAX
rm [options]... file...
OPTIONS
-d, --directory unlink directory, even if non-empty (super-user only)
-f, --force ignore nonexistent files, never prompt
-i, --interactive prompt before any removal
-r, -R, --recursive remove the contents of directories recursively
-v, --verbose explain what is being done
--help display this help and exit
--version output version information and exit
================================================
I've tried a few combinations, but didn't succeed. Any advice?