dirs_cleaner(8)

dirs_cleaner8

Remove contents of directories

Usage

dirs_cleaner path ...

Overview

The dirs_cleaner utility recursively deletes the entire contents of each directory argument, while the directories themselves are not deleted. A cleaned directory may be re-created in the process of cleaning; if so, it gets a new inode number. Recursive traversals do not cross mount points. Each directory is identified directly or via a symbolic link.

The dirs_cleaner utility exits with one of the following values:

0 Each input directory was successfully cleaned.

>0 An error occurred.

Releases

Unchanged in 32 releases since macOS 12.0.1.

  1. 12.0.1–26.5

From diskdev_cmds 757 in macOS 26.5. Parsed by carta from the page's mdoc source.