Disk Space Management Guide
Learn how to monitor disk usage, identify space-consuming items, and resolve quota exceeded errors.
Common Disk Space Error Messages
- "There is not enough space on the disk" (Error 0x80070070)
- "Disk quota exceeded"
- "HTTP Error 500 - Insufficient disk space"
- "Cannot write to file - disk full"
Checking Your Disk Usage in Plesk
- Log into Plesk
- Look at the Statistics section on the home page
- View Disk space used vs Disk space limit
- For detailed breakdown: Statistics > Disk Space by Service
Disk Space Breakdown:
| Category | What's Included | Common Culprits |
|---|---|---|
| Website Files | httpdocs, subdomains | Log files, uploaded content, temp files |
| Databases | SQL Server, MariaDB | Large log files (.ldf), accumulated data |
| Mailboxes, attachments | Old emails with attachments | |
| Backups | Plesk backup files | Multiple old backups |
How to Free Up Disk Space
1. Clean Up Log Files
Log files can grow large quickly. Safe to delete:
- Old .log files in your application folders
- stdout_*.log files (ASP.NET Core logs)
- IIS log files (contact support)
2. Remove Temporary Files
Check these folders for temp files:
- /httpdocs/App_Data/temp/
- /httpdocs/bin/roslyn/ (can be large)
- Any /temp/ or /tmp/ folders
3. Clean Old Backups
- Go to Backup Manager
- Delete old backup files you no longer need
- Keep only recent backups
4. Optimize Databases
Database log files (.ldf) can grow very large:
- Contact support to shrink database log files
- Consider changing recovery model to Simple
- Remove old data you no longer need
5. Clean Email Storage
- Delete old emails with large attachments
- Empty spam and trash folders
- Archive old mail to local client
Identifying Large Files
Using Plesk File Manager:
- Go to Files
- Sort by Size (descending)
- Look for unexpectedly large files
- Check subdirectories for accumulated content
Common Large Files to Check:
- *.log files - Application and error logs
- *.bak files - Old backup files
- *.ldf files - Database transaction logs
- Uploaded media (images, videos, documents)
Preventing Future Space Issues
1. Implement Log Rotation
For ASP.NET Core apps:
// Program.cs - Configure log file limits
builder.Logging.AddFile("logs/app-{Date}.log", options =>
{
options.FileSizeLimitBytes = 10_000_000; // 10MB max
options.RetainedFileCountLimit = 5; // Keep 5 files
});
2. Monitor Upload Sizes
Limit file uploads in your application:
// Limit upload size in web.config <requestLimits maxAllowedContentLength="10485760" /> <!-- 10MB -->
3. Regular Cleanup Schedule
- Weekly: Check disk usage in Plesk
- Monthly: Clean old logs and temp files
- Quarterly: Review and clean old backups
Upgrading Disk Space
If you consistently need more space:
- Review your hosting plan's disk allocation
- Contact sales to discuss upgrade options
- Consider database-specific storage add-ons
Emergency: Site Down Due to Disk Space
- Open support ticket immediately
- Mention "disk space" in subject for priority handling
- Support can temporarily free space or increase quota
- Then follow cleanup steps above