🗑️ Universal cleanup executor - Zero-friction automated deletion of junk files
Project description
🗑️ Junk - Universal Cleanup Executor
A zero-friction Python CLI tool for automated cleanup of unwanted files and directories.
🚀 The Problem
You have repositories filled with junk files and folders:
/target/*.logfiles__pycache__//temp/directories- Build artifacts
- Cache files
Manually deleting these is annoying, and you want an automated executor that works universally across any project.
✨ The Solution
Junk is a PyPI-distributed CLI tool that provides one-shot cleanup with zero approvals or prompts.
Simply run:
junk
The tool:
- 🔍 Looks for a
junk.fatfile in the current directory - 📝 Reads the list of unwanted files/folders
- 🗑️ Deletes everything listed
- 🧹 Self-destructs (
junk.fatis removed after successful cleanup)
📦 Installation
Install from PyPI:
pip install junk-remover-cli
Then use anywhere:
junk
📋 Usage
-
Create a
junk.fatfile in your project root with files/folders to delete:/target/ /Server/plotter/output/main.png /Server/temp/arch.json __pycache__/ *.log node_modules/ .DS_Store -
Run the cleanup:
junk
-
Done! All listed items are deleted, and
junk.fatremoves itself.
🎯 Key Features
- ✅ Zero prompts - No confirmations, just executes
- ✅ Universal - Works in any directory with a
junk.fatfile - ✅ Self-cleanup - Removes
junk.fatafter successful execution - ✅ Error handling - Keeps
junk.fatif some deletions fail - ✅ Cross-platform - Works on Windows, macOS, and Linux
- ✅ Encoding aware - Handles different file encodings automatically
🔧 Behavior
- Success case: All items deleted →
junk.fatis removed - Partial failure: Some items couldn't be deleted →
junk.fatis preserved for retry - No
junk.fat: Exits gracefully with informative message
🤖 AI Integration
This tool is designed to work perfectly with AI code assistants:
- AI generates the
junk.fatfile with project-specific junk patterns - Junk executes the cleanup without any human intervention
- Universal workflow across different projects and languages
🛠️ Examples
Web Development Project
node_modules/
dist/
.cache/
*.log
.DS_Store
Python Project
__pycache__/
*.pyc
.pytest_cache/
build/
*.egg-info/
Java Project
target/
*.class
*.jar
*.war
🔒 Safety
- Only deletes what's explicitly listed in
junk.fat - No wildcards or pattern matching (what you list is what gets deleted)
- Skips non-existent files/folders gracefully
- Provides clear feedback on what was deleted
📄 License
MIT License - see LICENSE file for details.
🤝 Contributing
Contributions welcome! This tool is intentionally simple and focused. Please ensure any changes maintain the core principle: zero-friction cleanup execution.
Make cleanup universal. Make it automatic. Make it simple.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file junk_remover_cli-0.1.0.tar.gz.
File metadata
- Download URL: junk_remover_cli-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb8f658622d4d8ba848dbe8fdb165255c42acf9c6335296e2e7bc9b124dc1cb
|
|
| MD5 |
77d238afde549a048f46ef2723a5fc25
|
|
| BLAKE2b-256 |
e3b1e355f9882391712e924bed1e67c5d89bc3da7b9e0393ac002fad287226b9
|
File details
Details for the file junk_remover_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: junk_remover_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82dba21ad52fd5b3b77aa248ef1e0401f08507ff9f18df9f34acbb4f2bde0b5c
|
|
| MD5 |
ea4bc7a2d86eb9054b00278f831b0b1c
|
|
| BLAKE2b-256 |
c8ce38d8969eef83e1cd5d9ee465df040c20464047b4c3dfa19ad8b5e28d971f
|