clean
« Back to VersTracker
Description:
Search for files matching a regex and delete them
Type: Formula  |  Latest Version: 3.4@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: file-management cleanup cli utility deletion
Install: brew install clean
About:
Clean is a command-line utility designed to recursively search directories for files matching a specified regular expression and delete them. It provides a powerful and flexible alternative to manual file cleanup, allowing users to target specific file patterns with precision. The tool is particularly useful for removing temporary artifacts, backups, or other generated files that clutter development environments.
Key Features:
  • Recursive directory searching
  • Regular expression pattern matching
  • Interactive or force deletion modes
  • Dry-run capability for safe testing
Use Cases:
  • Removing backup files (*.bak, *~) from a project directory
  • Cleaning up compiled object files and executables
  • Deleting temporary files created by various applications
Alternatives:
  • find – Standard Unix tool, more complex syntax but more versatile
  • fd – Modern alternative with simpler syntax and faster performance
  • rm – Basic removal tool, lacks pattern matching and recursion by default
License: LicenseRef-Homebrew-public-domain
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 12, 2025 8:11pm 0 VERSION_BUMP 0e90ddb1