On 1/18/21 8:08 AM, Bernhard Voelker wrote: > On 1/17/21 11:18 PM, Paul Eggert wrote: >> find DIR -depth -type d -exec rmdir {} + > > find(1) can also find empty directories and delete them: > > $ find DIR -type d -empty -delete Thanks, I'd forgotten about that. I added the attached to the manual, as the point seems worth documenting even if we don't change the code.