---
name: "dirs_cleaner"
section: "8"
platform: "macos"
package: "diskdev_cmds"
version: "757"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/dirs_cleaner"
---

# dirs\_cleaner(8)

remove contents of directories

## NAME

**dirs\_cleaner** – remove contents of directories

## SYNOPSIS

**dirs\_cleaner** *path* *...*

## DESCRIPTION

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.
