# Clear disk space on cPanel Server by removing backups, trash etc

```
for user in `/bin/ls -A /var/cpanel/users` ; do rm -fv /home*/$user/backup-*$user.tar.gz ; done
rm -fv /home*/*/tmp/Cpanel_*
rm -rfv /home*/*/softaculous_backups
rm -rfv /home*/*/public_html/wp-content/updraft/*
find /home*/*/.trash/* -exec rm -rf {} \;
#find /home -type f -name error_log -exec rm -f {} \;
yum clean all
rm -rf /var/cache/yum
find /home -type f -name error_log -exec rm -f {} \;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.vimzaa.com/cpanel-hosting/cpanel-advanced/clear-disk-space-on-cpanel-server-by-removing-backups-trash-etc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
