https://github.com/sarfraznawaz2005/devcachecleaner
Clean hidden GBs of cache and free up disk space - especially for developers!
https://github.com/sarfraznawaz2005/devcachecleaner
autohotkey autohotkey-script autohotkey-v2 cache cleaner cleanup cleanup-script dev developer developer-tools development devops
Last synced: 4 months ago
JSON representation
Clean hidden GBs of cache and free up disk space - especially for developers!
- Host: GitHub
- URL: https://github.com/sarfraznawaz2005/devcachecleaner
- Owner: sarfraznawaz2005
- Created: 2025-08-27T18:50:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-28T20:37:35.000Z (5 months ago)
- Last Synced: 2025-08-29T02:09:21.997Z (4 months ago)
- Topics: autohotkey, autohotkey-script, autohotkey-v2, cache, cleaner, cleanup, cleanup-script, dev, developer, developer-tools, development, devops
- Language: AutoHotkey
- Homepage:
- Size: 1.98 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# DevCacheCleaner

`DevCacheCleaner.ahk` is an AutoHotkey v2 script designed to help you clean development-related cache files and directories on your Windows 11 system. It provides a graphical user interface (GUI) for a safe and controlled cleanup process.
## Features:
* **GUI-Based Operation:** Easy-to-use interface for managing cache cleanup.
* **Preview Before Deletion:** Displays a preview of all identified cache paths and their sizes before any files are removed, allowing you to review and select items for deletion.
* **User Confirmation:** Requires explicit user confirmation before proceeding with any deletions, preventing accidental data loss.
* **Configurable Cleanup:** Utilizes `cleanup.ini` for flexible configuration, including:
* Defining **root paths** to scan for development projects.
* Specifying **patterns** for common cache directories (e.g., `node_modules/.cache`, `__pycache__`, `.gradle/caches`).
* Setting **exclusions** to prevent specific files or directories from being deleted.
* Optionally including **Windows temporary files** and **global application caches** in the cleanup process.
* **Logging:** Maintains a `cleanup.log` file to record all cleanup actions.
* **Preservation List:** Allows you to define a list of file names in `cleanup.ini` that should *never* be deleted, even if they are found within a cache directory.
## How it Works:
The script scans the specified root directories for development projects, identifies cache-like directories based on configured patterns, and presents them in a list. You can then select which items to delete. It also offers the option to clean common Windows temporary folders and global caches.
## Configuration:
The behavior of the script is controlled by the `cleanup.ini` file, located in the same directory as the script. This file allows you to customize:
* `[General]` settings like `ConfirmBeforeDelete`, `MaxDepth`, `IncludeWindowsCleanup`, `IncludeGlobalCaches`, and the `LogFile` path.
* `[Roots]` where you define the base directories for your projects.
* `[AlwaysDelete]` for paths that should always be considered for deletion.
* `[Markers]` for files that indicate a project directory (e.g., `.git`, `package.json`).
* `[Patterns]` for the actual cache directory names to look for.
* `[Excludes]` for directories or exact paths to skip during cleanup.
* `[WindowsCleanup]` for Windows-specific temporary directories.
* `[GlobalCaches]` for common global application caches.
* `[Preserve]` for file names that should never be deleted.
This script provides a powerful yet safe way to manage and clean up accumulated development caches, helping to free up disk space and maintain a tidy development environment.