clean

Search for files matching a regex pattern and delete them

brewmacoslinux
Try with needOr install directly
Source

About

Search for files matching a regex and delete them

Commands

clean

Examples

Delete all .log files in current directory$ clean '\.log$'
Remove temporary files matching a pattern recursively$ clean -r 'temp|tmp' /path/to/directory
Find and delete backup files ending with .bak$ clean '\.bak$' -v