dirs_cleaner
Recursively empty directories while the directories themselves are not deleted. tldr-pages
On macOS
macOS
Recursively empty directories while the directories themselves are not deleted. Note: On macOS 13 (Ventura) and later, dirs_cleaner is subject to AMFI launch constraints introduced in Ventura. The binary remains present at /usr/libexec/dirs_cleaner but cannot be invoked directly from a user session, including as root.
Recursively delete contents of folder structure without removing directories
sudo dirs_cleaner path/to/directory1 path/to/directory2 ...Identify