Find empty directories
find empty directories linux | list empty folders | find folders without files | find | cleanupfind /var/www/vhosts/example.com/httpdocs -mindepth 1 -type d -emptyPrints every directory that contains neither files nor subdirectories. -mindepth 1 excludes the starting path itself. Useful after migrations or plugin removals to spot leftovers.
Note: Some empty folders are intentional, for example wp-content/upgrade or cache directories an application expects.
Also searched as
- find empty directories linux
- list empty folders
- find folders without files