Subject: bug#27632: rm -f fais on directories

From: Tino Calancha <[email-masked]>
Date: Mon, 10 Jul 2017 12:19:46 +0900

Marv Graham <[email-masked]> writes:

> This is VERY unexpected behavior! An 'rm -f' command has (for my experience in the last 30 years) removed anything.
>
> What;'s the problem with rm on ubuntu?
Flag -f won't delete directories.
To remove anything, you'd use: rm -rf

Use flag -r (or -R) to delete directories.  If you prefer
delete _empty_ directories but preserve non-empty dirs, then use
flag -d.

>From the 'rm' manual:

     -r, -R, --recursive
          remove directories and their contents recursively

     -d, --dir
          remove empty directories