Skip to content

Cleanup Scripts

XsMagical edited this page Aug 12, 2025 · 1 revision

Cleanup Scripts

The Cleanup Scripts in Linux Tools are designed to safely remove unnecessary files, packages, and caches from your Linux system without breaking anything important.

🎯 Purpose

  • Free up disk space by removing unneeded system files and packages.
  • Keep the system optimized without risking essential components.
  • Provide optional deep-clean modes for advanced users.

πŸ–₯️ Script Details

File: universal_cleanup.sh

  • Works on Fedora/RHEL, Ubuntu/Debian, Arch, and openSUSE.
  • Detects your package manager and removes:
    • Orphaned/unneeded packages
    • Old package caches
    • Unused Flatpak runtimes and apps
    • Disabled Snap revisions
    • Old logs and journal files
    • User thumbnails and trash
    • Development caches (pip, npm, yarn, cargo)
  • Optional cleaning:
    • Steam shader and GPU caches
    • Unused Docker images, containers, and volumes
  • Skips already clean areas for faster runs.
  • Logs every action for review.

πŸ”— Location

https://github.com/XsMagical/Linux-Tools/tree/main/scripts/cleanup

πŸ“‹ Notes

  • Designed to be safe by default β€” no destructive actions unless specifically enabled with flags.
  • Can be re-run periodically to maintain a clean system.

Linux Tools

Universal scripts by Team Nocturnal

πŸ“‚ Sections


Status

Repo stars Issues PRs Last commit


πŸ“ˆ Progress

Milestones

  • v1.0 baseline (core presets + docs)
  • Universal Cleanup v1
  • Universal Update v1
  • Gaming overlays guide (per-game)
  • NVIDIA driver automation guide
  • Distro matrix (tested + notes)

Docs

  • Wiki Home
  • Post-Setup overview
  • Gaming overview
  • NVIDIA driver overview
  • Update overview
  • Cleanup overview

Scripts

  • post-setup/tn_xs_post_install.sh
  • gaming/universal_gaming_setup.sh
  • drivers/tn_universal_nvidia_signed.sh
  • update/*
  • cleanup/universal_cleanup.sh
  • common/header.sh

πŸ”— Repo

https://github.com/XsMagical/Linux-Tools

Clone this wiki locally