How Cloud Storage Counts Space, and When Files Actually Disappear
Table of Contents
An account that shows 40 GB of visible files and a meter at 78% is not lying: the meter counts objects the browser never displays. Cloud storage bills what the backend keeps, not what the interface lists. The same accounting decides when content is truly lost, because a deleted file and a superseded version stay billable until a collector decides otherwise.
Occupied space versus consumed space
Occupied space is what the interface reports: the sum of live files in your folders. Consumed space is what the billing meter counts, and it includes every object the provider still stores for you:
- Noncurrent versions of files, kept because versioning ships enabled in most sync clients.
- The trash, a folder of ordinary objects with a deletion date attached.
- Generated derivatives: thumbnails, transcoded previews, OCR layers, index shards.
- Parts of interrupted multipart uploads, billed as objects although no file finished uploading.
- Allocation overhead. A 900-byte file occupies a whole block, 4 KiB on some backends; across 200,000 small files the gap reaches gigabytes.
Six thousand photos averaging 3 MB hold roughly 18 GB. Add a 40 KB thumbnail each and the meter reads 18.3 GB before any version exists. Edit a hundred in a tool that writes a new version instead of overwriting, and more gigabytes appear without one new file.
A delete is a write. On a versioned bucket or a sync engine the object is rarely removed, it is superseded: the previous bytes stay readable and billable until a lifecycle rule or a manual purge drops the noncurrent version.
Why deleting does not free quota at once
Three mechanisms, often together, delay the release of space:
- Soft delete. The file is renamed and timestamped, not erased. Quota returns when the window closes or you empty the bin.
- Deferred garbage collection. Dropping the last reference to a block does not reclaim it; reference counting and mark-and-sweep run as background jobs.
- Eventually consistent meters. Providers cache a per-account counter and reconcile it on a schedule, so the settings page can lag by hours.
A fourth case: minimum storage duration. Archive tiers bill a fixed period whether you keep the object a day or the whole period, so an early delete can cost as much as retention.
What the trash and the version history cost
Lifetimes are policy, not physics: read them in the account settings rather than trusting a blog post, this one included.
| Layer | Counted in quota | Typical lifetime | Recoverable after |
|---|---|---|---|
| Live file | Yes, full size | Unlimited | Not applicable |
| Previous version | Yes, full size | Until lifecycle rule or manual purge | Yes, from version history |
| Trash or recycle bin | Yes | 30 days on Google Drive and consumer OneDrive | Yes, until purge |
| Interrupted multipart upload | Yes, per part | Until aborted | No usable object |
| Thumbnail or preview | Usually yes | As long as the source file | No |
| Volume snapshot on a NAS | Yes, if held on the same volume | Until snapshot expires | Yes, as a full image |
Several layers hold the same bytes and each bills independently. Emptying the bin is a quota operation, not housekeeping.
Inactivity is measured in logins, not in downloads
Free accounts are closed for one reason: nobody signed in. A public link can be reshared forever, so traffic proves a URL works, not that its owner is reachable. A login proves that whoever holds the credentials also holds the recovery mailbox, the only channel a provider has to warn before deletion. Counting logins is also cheap: one timestamp per account instead of an access log per object.
The consequence is counter-intuitive: a file downloaded a thousand times a month from an abandoned account is scheduled for deletion. MediaFire's free tier works on a twelve-month window without a login, and warnings go to a mailbox that is often dead by then.
Traffic keeps a link alive. Only a login keeps an account alive. If you archive into a free tier, put the annual sign-in in a calendar rather than in your memory.
Cold storage: what it is and where the trap sits
Cold tiers hold data on offline or nearline media, tape libraries being the classic case. Reading an object requires a restore job: the provider copies it to a warm tier, which takes minutes to hours and bills per gigabyte retrieved. Minimum durations complete the model: AWS Glacier bills 90 days, Deep Archive 180, keep the object that long or not. Delete earlier and you pay the remainder.
Cold storage turns into a trap in four situations: when it holds the only copy, since a twelve-hour restore is not a backup; when you need random access monthly, because every restore is a job with a cost floor; when you re-upload the archive each quarter, since each upload restarts the clock; and when nobody estimated the retrieval bill, because a terabyte-class restore is a purchase, not an operation. It remains sound for one narrow case: an immutable second copy of data held locally, read almost never, with a restore you have rehearsed once.
Archiving that survives the retention policy
The 3-2-1 rule is three copies, on two media types, one of them offsite. It is necessary and incomplete: three copies of a corrupted file are three corrupted copies. What completes it is a hash manifest and a schedule.
- Generate the manifest at ingest, while the data is known good:
find . -type f -print0 | xargs -0 sha256sum > hashes.sha256. - Keep it with each copy, and one copy elsewhere. It is the only record of what the bytes should be.
- Verify quarterly for cold data:
sha256sum -c hashes.sha256. A mismatch is a finding, not a nuisance. - On a mismatch, do not overwrite: copy the intact replica back and log the date and the medium.
- Re-verify after every migration, before retiring a disk, and rehearse one restore.
- Keep the encryption passphrase inside the plan. A lost key is a lost archive, and no checksum reports it.
Quota arithmetic and retention windows are policy: both change without notice, and neither is a backup strategy. What you control is the number of copies, the freshness of the hashes and whether a restore has ever been tested. The checksum verifier checks a file in the browser; the command line is covered in verifying a SHA-256 hash.
Troubleshooting Common Issues
| Error / Issue | Technical Cause | Step-by-Step Fix |
|---|---|---|
| InvalidObjectState | The object sits in an archive tier and a plain GET cannot read it until a restore job completes. | Start a restore request with an explicit duration and retrieval tier, then poll the job before retrying the download. |
| sha256sum: WARNING: 1 computed checksum did NOT match | Bit rot, a truncated copy, or a file modified after the manifest was written. | Do not overwrite the file. Compare it against the second replica, copy the intact one back, and log the date and medium. |
| HTTP 507 Insufficient Storage | The quota meter is full because trash, noncurrent versions or aborted upload parts still count. | Empty the bin, purge noncurrent versions through the lifecycle rule, and abort stale multipart uploads. |
| Account scheduled for deletion due to inactivity | No successful login was recorded inside the provider's retention window; downloads do not reset it. | Sign in and confirm the recovery mailbox still receives mail, since the warnings go to that address. |
Frequently Asked Questions
Why does my quota stay full after I delete files?
Deletion usually moves the object to a bin or marks a version as noncurrent. The bytes stay allocated until the retention window closes or you purge them, so the meter frees space later, not immediately.
Do downloads keep a free account active?
No. Traffic proves a link works, not that its owner is reachable. Providers reset the inactivity timer on a successful login, because that also proves the recovery mailbox is still under your control.
Is cold storage cheaper than keeping a local disk?
Per stored gigabyte it is, but retrieval is billed per gigabyte, takes minutes to hours, and early deletion carries a charge. For data you read monthly, a warm tier or a local disk is usually cheaper overall.
How often should I verify hashes in a long-term archive?
Quarterly for cold or rarely touched data, and after every migration between media. The check is cheap because it reads only, and it converts silent corruption into a dated, actionable finding.
Related Technical Guides
File Hash Verification: SHA-256, MD5 and What a Digest Proves
Verify file hashes with certutil, Get-FileHash and sha256sum. Why SHA-256 beats MD5, how to run bulk checksum files and catch silent corruption.