mac-cleanup-py is an open-source Python utility for clearing selected caches, logs and other files on macOS. Configure the cleanup modules for the files you want to handle. The dry-run mode lets you preview a cleanup without deleting anything.