Cleanup disk space on a small Linux VPS.
Run as root:
bash new_clean.shThe script removes apt caches, old journal entries, stale temporary files, and root user caches. Docker pruning is conservative: stopped containers, unused networks, build cache, and unused images may be removed, but Docker volumes are preserved.
Environment variables:
KEEP_JOURNAL_DAYS=7d DOCKER_PRUNE=1 bash new_clean.shCleanup Disk