Subject: Re: bug#21084: rm appears to no longer be POSIX compliant (as of 2013 edition) re: deleting empty dirs and files under <path>/.

From: Paul Eggert <[email-masked]>
Date: Sun, 02 Aug 2015 01:15:07 -0700

Linda Walsh wrote:
> find, by itself, has no way to remove all of the items under a
> tree even if you own them all.

That's not a problem.  Have 'find' call 'rm'.  Something like this, say:

find . ! -name . -prune -exec rm -fr {} +

So there's no need to change 'rm'.