About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
cPanel's Disk Usage page says that when you receive a "Write failed: disk quota exceeded" warning, your account has used the maximum amount of disk space that its quota allows, and you cannot save any files because no disk space remains. The fix is to find what uses the space and free it, or to have the quota raised. Only the hosting provider, or a WHM administrator, can raise a quota. Before you delete anything, keep a copy somewhere other than the account itself.
What the error means
A quota is the most disk space an account can use. The cPanel Quota Modification page says quotas do not limit changes to MySQL or PostgreSQL databases, and the Disk Usage page adds that database sizes count in the usage figure while the system does not enforce the quota when a database causes the account to exceed it. So files, mail and anything else the account owns can hit the limit. A growing database is not blocked by the quota, but its size counts in the usage figure, so it can leave the account over its quota.
The Disk Usage page also warns that "The backup process for an account near or over its quota may fail because the system cannot write necessary files, such as a database lock file." Our own advice: do not try to make a copy of data on the same account while it is full.
Some figures look wrong for explainable reasons. The page says most files occupy slightly more space than their size (a 300-byte file may occupy 4 KB), figures "may not reflect recent changes", and a new account can reuse the user ID of a deleted account and so take ownership of that account's old files, making it look over quota.
For the related Linux case of free bytes but no space, read Linux Says No Space Left but Bytes Are Free: Check Inodes and Quotas.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Large files in the account's folders (old backups, logs, uploads) | Disk Usage graph dominated by one folder | The Disk Usage bars, which are relative to the largest directory |
| Deleted files still in the Trash folder | File Manager moves deleted files to Trash until Empty Trash is clicked | File Manager's View Trash lists them |
| Mailboxes holding years of messages | Disk Usage of mailboxes is large | Email Disk Usage table sorted by disk usage |
| Quota set too low for the account | Account listed as over quota in WHM | Show Accounts Over Quota lists Space Used against Quota |
| Another account's old files under the same user ID | Usage far above what the folders hold | The find / -user username -ls result lists files elsewhere |
Prove the cause before changing anything
Every step in this section only reads.
- In cPanel, open Disk Usage (Files). The page says the feature only appears if the provider's server profile enables it. It summarises files in the home directory, in hidden subdirectories, Mailman lists and files outside the home directory, with bars relative to the largest directory. Click a directory to open it in File Manager.
- Open Email Disk Usage and sort by disk usage. The page notes that due to system caching the values may not reflect recent changes.
- In File Manager, choose View Trash and look at what is waiting there. The File Manager page says deleted files are not permanently deleted but moved to Trash. Read the Disk Usage figure again after each clean-up step below, to see whether the figure changed.
- As a WHM administrator, open Show Accounts Over Quota. It lists User, Space Used and Quota for accounts that exceed their quota.
- As a user who can read the whole file system, compare the account's folder with its quota. The Quota Modification page gives these commands when the two disagree.
du -sh /home/username
find / -user username -ls
Replace username with the account's user name. A result in which du is far below the quota, while find lists many files elsewhere, may mean the user ID owns other files.
Fix
Large files or messages
The fix is to free the space the account owns. Because a full account cannot make a copy of itself, the save-first step is a download to your own computer, which the File Manager Download action does for files.
First save the current state: download each file you plan to delete to your own computer, and write down the account's Disk Usage figure and the time.
Risk: The next step deletes files from the account. The File Manager page says the system does not permanently delete them but moves them to the Trash folder.
In File Manager, select the files, click Delete in the toolbar and Confirm. Then read the Disk Usage figure and compare it with the one you wrote down.
To undo it, before you empty Trash:
Risk: Restoring puts the files back on the account and uses the space again.
Use View Trash, select the item, click Restore in the toolbar and confirm.
If Disk Usage has not fallen enough, empty Trash. The File Manager page says: "Click Empty Trash to permanently delete the Trash folder’s contents."
Risk: Emptying Trash cannot be undone. After it, the only way back is to upload the copy you downloaded.
Click Empty Trash, then read the Disk Usage figure again.
For mailboxes, the Email Disk Usage page offers Manage, then removal options such as "1 year old or more" and "30MB in size or more", and Delete Permanently.
First save the current state: write down the mailbox name, its number of messages and its disk usage, and copy any messages you need to your own computer through a mail client.
Risk: The next step removes messages with Delete Permanently, and the removal cannot be undone.
Click Manage on the mailbox, choose one removal option, and click Delete Permanently.
Only if you need to back out: the removal cannot be undone, so bring the messages back from the copy you made.
Example (illustrative): the account example1 of Example Pty Ltd has a quota of 5,000 MB and Show Accounts Over Quota lists it with Space Used 5,000 MB. Disk Usage shows an old backup folder of 1,200 MB. The owner downloads the files, deletes them, empties Trash, and later Disk Usage reads 5,000 - 1,200 = 3,800 MB.
The quota is too low
An account owner cannot raise the quota: the Disk Usage page says to contact the hosting provider. A WHM administrator does it in Quota Modification.
First save the current state: write down the account's current quota in megabytes and the time.
Risk: The next change lets the account use more of the server's disk space. Choosing Unlimited removes the cap for that account.
In WHM, go to Account Functions > Quota Modification, select the account, click Modify, enter the new quota in megabytes (MB), and click Save.
Only if you need to back out: open the same screen and enter the value you wrote down. If the account already holds more than that, it is over quota again.
The quota figure itself is wrong
The Quota Modification page says that if all accounts' quotas display as 0, the quota files should be rebuilt with the click here link or WHM's Initial Quota Setup. After disabling and re-enabling quotas on XFS, or after a CloudLinux update, the page says to run /usr/local/cpanel/scripts/fixquotas and remount the file system. Those are server-level changes for the server's administrator, not the account owner.
Confirm the fix
- Reload Disk Usage. The figure falls by the size you removed, allowing for the caching delay.
- Save a small file in File Manager and upload one through the site. The write now works.
- WHM administrators: reopen Show Accounts Over Quota and check the account is no longer listed.
What to watch afterwards
- Our own advice: look at Disk Usage once a month, so the account does not reach the limit during a backup.
- The Disk Usage page says backups may fail near the quota, so keep headroom.
- After disabling and re-enabling quotas on XFS, or after a CloudLinux update, the Quota Modification page says to run
/usr/local/cpanel/scripts/fixquotasand then remount the file system; that is for the server administrator.
Read next
Related articles you may want next.
- HostingcPanel AutoSSL fails the DCV test: why a domain gets no certificatecPanel AutoSSL fails the DCV test for a domain. Read the AutoSSL error and log, then fix DNS, HTTP reachability, redirects or CAA records.Read article
- Troubleshooting"The uploaded file exceeds the upload_max_filesize directive in php.ini": every limit on the upload pathPHP 'The uploaded file exceeds the upload_max_filesize directive in php.ini': set upload_max_filesize, post_max_size and memory_limit together, reload FPM.Read article
- HostingWordPress "Missing a temporary folder.": PHP cannot create the upload's temporary fileWordPress says Missing a temporary folder. when PHP cannot create the upload's temporary file. Check upload_tmp_dir and open_basedir, fix, confirm.Read article
Risks and limits
- These commands have not been run or lab-tested.
- The Disk Usage feature appears only if the hosting provider's server profile enables it.
- Deleting files and messages cannot always be reversed; keep a copy outside the account.
- Raising a quota is the hosting provider's decision.
Sources
- Disk Usage — cPanel & WHM Documentation, last modified 8 July 2026, accessed 4 December 2026
- Quota Modification — cPanel & WHM Documentation, last modified 8 July 2026, accessed 4 December 2026
- Show Accounts Over Quota — cPanel & WHM Documentation, last modified 8 July 2026, accessed 4 December 2026
- File Manager — cPanel & WHM Documentation, last modified 8 July 2026, accessed 4 December 2026
- Email Disk Usage — cPanel & WHM Documentation, last modified 8 July 2026, accessed 4 December 2026
This article was originally published on .