# Disk space cleanup

**URL:** https://meta.discourse.org/t/disk-space-cleanup/301984
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [April 2, 2024, 4:05am UTC](https://meta.discourse.org/t/disk-space-cleanup/301984 "2024-04-02T04:05:51Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [April 2, 2024, 12:11pm UTC](https://meta.discourse.org/t/disk-space-cleanup/301984/2 "2024-04-02T12:11:48Z")

</div>

I’d start with a measurement:

```plaintext
du -kx / | sort -n | tail -499

```

Probably also worth

```plaintext
df

```

and perhaps

```plaintext
find / -xdev -ls|sort -n -k 2|tail -199

```

which might take a few minutes

You might see one or more swapfiles so it’s worth checking if they are in use:

```plaintext
swapon

```

---

_[View the full topic](https://meta.discourse.org/t/disk-space-cleanup/301984)._
