Clean · Optimize · Compact

WSL Cleaner

Reclaim 10–100+ GB from your WSL 2 virtual disks.
One click. 60+ cleanup tasks. Real-time monitoring.

Free & open source · MIT License · Windows 10/11

WSL Cleaner application showing multiple features

Features

Everything you need to manage, monitor, and optimize your WSL 2 environment.

Cleaner

One-click Clean & Compact runs all enabled tasks, removes stale directories, trims the filesystem, and compacts your VHDX. Watch progress in real time with a live timer and see before/after disk size comparison.

  • Run all 60+ cleanup tasks in one click
  • Automatic stale directory detection and removal
  • VHDX compaction with filesystem TRIM
  • Before/after disk size comparison
  • Clean-only mode for faster passes without restart
WSL Cleaner - Cleanup progress view

Cleanup Settings

Full control over 60+ cleanup tasks organized into categories. Each task shows what it does and estimated reclaimable space. Auto-detects installed tools and only shows relevant tasks.

  • System, editor, package manager, and framework categories
  • Stale directory scanner for node_modules, vendor, __pycache__
  • Estimated space savings per task
  • Real-time search to filter tasks
  • Aggressive tasks (disabled by default) for deep cleaning
WSL Cleaner - Cleanup task settings

Cleanup Stats

Track your cleanup history with interactive charts. See total space saved, average per session, your cleanup streak, and detailed breakdowns over time.

  • Total space saved and cleanup count
  • Disk size over time line chart
  • Space saved per session bar chart
  • Session history table with dates and durations
  • Cleanup streak tracking
WSL Cleaner - Cleanup statistics

Disk Map

WinDirStat-style interactive treemap showing exactly what consumes space inside WSL. Click to drill down into directories, hover for details, and navigate with breadcrumbs.

  • Color-coded squarified treemap visualization
  • Click-to-drill-down navigation
  • Hover tooltips with path, size, and percentage
  • Configurable scan depth (2–5 levels)
  • Excludes Windows mounts to focus on WSL usage
WSL Cleaner - Disk map treemap

Health Dashboard

Real-time system dashboard monitoring CPU, memory, disk, networking, processes, and services. Auto-refreshes every 10 seconds with visual progress bars and detailed metrics.

  • CPU load, memory, and swap usage with visual bars
  • Network interface stats and DNS status
  • Top processes by CPU and zombie detection
  • Docker container counts and systemd state
  • WSL config limits vs actual usage display
WSL Cleaner - Health dashboard

Distro Manager

Manage all WSL distributions from one panel. Compare VHDX sizes, package counts, and uptime at a glance. Export, import, clone, restart, and migrate distros with a single click.

  • Comparison table with size, packages, and uptime
  • Export distro to .tar backup archive
  • Import distro from .tar with custom name and location
  • One-click clone and restart
  • Migration wizard to move a distro to another drive
  • Real-time activity log for operations
WSL Cleaner - Migration wizard

WSL Config Editor

GUI editor for .wslconfig (global) and per-distro wsl.conf. One-click optimize button fills recommended values based on your hardware. Auto-backup before every save.

  • Memory, CPU, swap, and networking configuration
  • Per-distro settings with distro selector
  • One-click optimize with hardware-aware defaults
  • Field validation and helpful descriptions
  • Automatic .bak backup before saving
WSL Cleaner - Config editor

Startup Manager

View and manage systemd services from a clean interface. Enable or disable services, search and filter by state, and expand details to see dependencies and PID info.

  • Service table with state and active status
  • Enable/disable toggles for each service
  • Real-time search and quick-filter buttons
  • Expandable details with dependencies and paths
  • Init system detection with setup hints
WSL Cleaner - Startup manager

Performance Analyzer

Benchmark WSL startup time and profile your shell configuration to identify performance bottlenecks. Get actionable suggestions to speed up boot and shell startup.

  • Cold-boot benchmark for each WSL distro with historical tracking
  • Shell startup profiler detecting slow items (nvm, conda, oh-my-zsh, pyenv, etc.)
  • Per-file RC analysis with measured sourcing times
  • Total vs baseline timing to isolate RC file overhead
  • Actionable optimization suggestions for each detected bottleneck
WSL Cleaner - Performance analyzer

Tray & Alerts

Background monitoring via system tray with a live tooltip showing disk size, RAM usage, and Docker stats. Six configurable alert types with customizable thresholds and smart notifications.

  • System tray icon with live stats tooltip
  • Minimize-to-tray for background monitoring
  • VHDX size, memory, Docker, and DNS alerts
  • Zombie process and failed unit detection
  • Configurable monitoring intervals (10–600s)
WSL Cleaner - Tray and alert settings

Ready to Reclaim Your Disk Space?

Free, open source, and built for developers.

Download for Windows

Requires Windows 10/11 with WSL 2 and Hyper-V enabled