arch-wsl-cleanup

Installation
SKILL.md

Arch WSL Disk Cleanup

Guide systematic disk space cleanup on Arch Linux WSL systems. Follow a layered approach: start with safe cache cleanup, then review installed packages, then scan for large files and directories.

Pre-flight Checks

  1. Confirm the environment is Arch Linux: head -3 /etc/os-release
  2. Check if running in WSL: grep -qi microsoft /proc/version
  3. Check current disk usage: df -h /
  4. Identify available package managers: which pacman yay paru 2>/dev/null

Record baseline for the final report — save the output of df -h / and:

du -sh /var/cache/pacman/pkg/ ~/.cache/ 2>/dev/null

Phase 1: Safe Cleanup (zero risk, execute directly)

Related skills
Installs
6
Repository
cnife/skills
First Seen
Apr 26, 2026