VPS one-click scripts

Safe VPS Disk Cleanup Tutorial

This tutorial shows how to run a conservative disk cleanup on a Linux VPS with xyz.sh/clean, inspecting usage before anything is deleted.

Command
$ curl -fsSL xyz.sh/clean | bash

Details · xyz.sh/clean · Last updated:

Prerequisites

You need a supported Linux VPS and root.

Preview the plan with --dry-run; do not add --docker or --kernels unless you are sure.

Steps

Optional: read the source with curl -fsSL xyz.sh/clean.sh and compare xyz.sh/clean.sh.sha256.

Preview: curl -fsSL xyz.sh/clean | bash -s -- --dry-run

Apply after you accept the plan: curl -fsSL xyz.sh/clean | bash -s -- -y

To also prune unused Docker data (no volumes): bash -s -- -y --docker

To also remove unused kernels (never the running one): bash -s -- -y --kernels

How to verify

The script prints df before and after, and an approximate amount freed. After --dry-run, usage should match the starting figure.

How to undo or uninstall

This is a one-shot cleanup. It installs no standing service and has nothing to uninstall.