Skip to main content

🗑️ 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/
  • *.log files
  • __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:

  1. 🔍 Looks for a junk.fat file in the current directory
  2. 📝 Reads the list of unwanted files/folders
  3. 🗑️ Deletes everything listed
  4. 🧹 Self-destructs (junk.fat is removed after successful cleanup)

📦 Installation

Install from PyPI:

pip install junk-remover-cli

Then use anywhere:

junk

📋 Usage

  1. Create a junk.fat file 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
    
  2. Run the cleanup:

    junk
    
  3. Done! All listed items are deleted, and junk.fat removes itself.

🎯 Key Features

  • Zero prompts - No confirmations, just executes
  • Universal - Works in any directory with a junk.fat file
  • Self-cleanup - Removes junk.fat after successful execution
  • Error handling - Keeps junk.fat if 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.fat is removed
  • Partial failure: Some items couldn't be deleted → junk.fat is 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.fat file 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

junk_remover_cli-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

junk_remover_cli-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for junk_remover_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 efb8f658622d4d8ba848dbe8fdb165255c42acf9c6335296e2e7bc9b124dc1cb
MD5 77d238afde549a048f46ef2723a5fc25
BLAKE2b-256 e3b1e355f9882391712e924bed1e67c5d89bc3da7b9e0393ac002fad287226b9

See more details on using hashes here.

File details

Details for the file junk_remover_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for junk_remover_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82dba21ad52fd5b3b77aa248ef1e0401f08507ff9f18df9f34acbb4f2bde0b5c
MD5 ea4bc7a2d86eb9054b00278f831b0b1c
BLAKE2b-256 c8ce38d8969eef83e1cd5d9ee465df040c20464047b4c3dfa19ad8b5e28d971f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page