Skip to content

Repository files navigation

🧹 DiskCleaner Tool

Pembersih Disk Windows OtomatisAutomatic Windows Disk Cleanup Utility Version 1.2.5 | PowerShell | No Dependencies | Single-File


📋 Overview / Ikhtisar

EN — DiskCleaner is a standalone PowerShell tool that scans and cleans up junk files from your Windows system. It covers browser caches, temporary files, development caches, and application caches — all through an interactive menu with safety ratings, dry-run preview, and detailed logging.

ID — DiskCleaner adalah tool PowerShell mandiri untuk memindai dan membersihkan file sampah dari sistem Windows Anda. Mencakup cache browser, file temporary, cache development, dan cache aplikasi — melalui menu interaktif dengan rating keamanan, pratinjau dry-run, dan pencatatan log yang detail.


✨ Features / Fitur

English Indonesian
✅ 4 scan categories (Browser, Temp, Dev, App) ✅ 4 kategori scan (Browser, Temp, Dev, App)
✅ Interactive menu system ✅ Sistem menu interaktif
✅ Safety ratings: Low / Medium / High ✅ Rating keamanan: Rendah / Sedang / Tinggi
✅ Dry-run preview (no files deleted) ✅ Pratinjau dry-run (tanpa hapus file)
✅ Multi-select items to delete ✅ Pilih item yang akan dihapus
✅ Auto Administrator elevation ✅ Elevasi Administrator otomatis
✅ Detailed logging to file ✅ Pencatatan log detail ke file
✅ Progress bar during deletion ✅ Progress bar saat penghapusan
✅ Before/After disk usage stats ✅ Statistik penggunaan disk sebelum/sesudah
✅ Large file analysis ✅ Analisis file besar
✅ No external dependencies ✅ Tanpa dependensi eksternal

🚀 Quick Start / Mulai Cepat

EN — Run the script:

cd C:\DiskCleaner_Tool
.\DiskCleaner.ps1

ID — Jalankan script:

cd C:\DiskCleaner_Tool
.\DiskCleaner.ps1

⚠️ The script automatically elevates to Administrator if needed.
⚠️ Script akan otomatis meminta hak Administrator jika diperlukan.

If you get an execution policy error:

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
.\DiskCleaner.ps1

📊 Main Menu / Menu Utama

┌─── MAIN MENU ───────────────────────────────────────┐
│ [1] Pembersihan Cepat & Aman   (Low Risk items only) │
│ [2] Pembersihan Mendalam       (Low + Medium Risk)   │
│ [3] Analisis Disk              (Large files)         │
│ [0] Keluar Aplikasi                                  │
└──────────────────────────────────────────────────────┘
Menu Description / Deskripsi
1 Quick & Safe — Scans all, deletes only LOW risk items. / Pindai semua, hapus hanya item risiko rendah.
2 Deep Clean — Includes LOW + MEDIUM risk items. / Sertakan item risiko rendah dan sedang.
3 Disk Analysis — Find large files, view storage breakdown. / Temukan file besar, lihat rincian penyimpanan.
0 Exit / Keluar

📦 Scan Categories / Kategori Pindai

1. 🌐 Browser Cache

Chrome, Edge, Firefox, Brave, Opera — cache, GPU cache, and browsing data.

2. 🗑️ Temp & System Files

  • User Temp (%TEMP%)
  • Windows Temp (C:\Windows\Temp)
  • Prefetch
  • Windows Update Cache (SoftwareDistribution)
  • CBS Logs
  • Crash Dumps
  • Recycle Bin

3. 🛠️ Development Caches

  • npm / Yarn / pnpm cache
  • NuGet cache
  • pip cache
  • dotnet scratch
  • Composer cache
  • Maven repository (.m2)
  • Gradle caches
  • Go modules
  • PlatformIO caches
  • Visual Studio build folders (bin, obj, .vs)
  • Flutter build directories
  • Android SDK old build-tools/platforms

4. 📱 Application Caches

  • VS Code caches & extensions
  • JetBrains caches & logs
  • Canva, Zoom, Slack, Teams, Discord, Spotify, WhatsApp caches

🛡️ Safety Ratings / Rating Keamanan

Risk Color Meaning / Arti
LOW 🟢 Green Safe to delete — auto-rebuilds on next use. / Aman dihapus — akan dibangun ulang.
MEDIUM 🟡 Yellow Safe but may need app reinstall. / Aman tapi mungkin perlu instal ulang aplikasi.
HIGH 🔴 Red Not included in scans — user data. / Tidak termasuk dalam pemindaian — data pengguna.

📁 Project Structure / Struktur Proyek

C:\DiskCleaner_Tool\
├── DiskCleaner.ps1          ⭐ Main script (run this!)
├── README.md                ← This file
├── README.txt               Plain-text overview
├── FOLDER_STRUCTURE.txt     Folder layout guide
├── CLAUDE.md                AI assistant guide
├── check_syntax.ps1         Syntax validation helper
├── fix_encoding.ps1         UTF-8 BOM encoding fixer
├── Documentation\
│   ├── 00_START_HERE.txt
│   ├── QUICK_RUN.txt
│   ├── CARA_MENJALANKAN.txt (Indonesian guide)
│   ├── DISK_CLEANER_README.txt
│   └── DISK_CLEANER_GUIDE.md (Comprehensive manual)
├── Backup\
│   ├── cleanup_disk.ps1     Alternative CLI script
│   └── cleanup_disk.bat     Batch version
├── Logs\                    Auto-created log files
│   └── cleaner_YYYYMMDD.log
└── .git\

🔧 Requirements / Persyaratan

  • Windows 10 / 11
  • PowerShell 5.0+ (built-in)
  • Administrator access (auto-elevated)
  • No external dependencies required

📝 Logging

Logs are written to:
C:\Users\<username>\DiskCleaner_Log\cleaner_YYYYMMDD.log

Each log entry includes timestamp, level (INFO / SUCCESS / WARNING / ERROR), and action details.


📚 Documentation / Dokumentasi

File Language Read Time
Documentation\00_START_HERE.txt EN 10 min
Documentation\QUICK_RUN.txt EN 2 min
Documentation\CARA_MENJALANKAN.txt ID 🇮🇩 5 min
Documentation\DISK_CLEANER_README.txt EN 3 min
Documentation\DISK_CLEANER_GUIDE.md EN 10 min

🧪 Development Commands

# Syntax validation
powershell -ExecutionPolicy Bypass -File .\check_syntax.ps1

# Fix UTF-8 BOM encoding
powershell -ExecutionPolicy Bypass -File .\fix_encoding.ps1

📄 License

Free to use, modify, and distribute. Created for personal and educational use.


Created: 14 June 2026 | Version 1.2.5

About

Utilitas Pembersih Disk Windows Mandiri Skrip PowerShell Interaktif dengan rating keamanan, preview dry-run, pemindai cache dev (npm, pip, gradle, maven, vscode), analisis file besar, dan logging harian. Tanpa dependensi, auto-elevasi ke Admin.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages