How Cloud Storage Counts Space, and When Files Actually Disappear

How Cloud Storage Counts Space, and When Files Actually Disappear
Technical Specifications & Compatibility
Free Tier Baseline MediaFire Basic: 10 GB, expandable to 50 GB with bonus tasks
Drive Trash Purge Google Drive empties Trash automatically after 30 days
Onedrive Recycle Bin 30 days on consumer accounts, 93 days on business plans
Archive Minimum Duration AWS Glacier 90 days, Deep Archive 180 days
Manifest Command find . -type f -print0 | xargs -0 sha256sum > hashes.sha256
Multipart Billing Incomplete multipart uploads are billed per stored part until aborted
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:

  1. Soft delete. The file is renamed and timestamped, not erased. Quota returns when the window closes or you empty the bin.
  2. Deferred garbage collection. Dropping the last reference to a block does not reclaim it; reference counting and mark-and-sweep run as background jobs.
  3. 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.

LayerCounted in quotaTypical lifetimeRecoverable after
Live fileYes, full sizeUnlimitedNot applicable
Previous versionYes, full sizeUntil lifecycle rule or manual purgeYes, from version history
Trash or recycle binYes30 days on Google Drive and consumer OneDriveYes, until purge
Interrupted multipart uploadYes, per partUntil abortedNo usable object
Thumbnail or previewUsually yesAs long as the source fileNo
Volume snapshot on a NASYes, if held on the same volumeUntil snapshot expiresYes, 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.

  1. Generate the manifest at ingest, while the data is known good: find . -type f -print0 | xargs -0 sha256sum > hashes.sha256.
  2. Keep it with each copy, and one copy elsewhere. It is the only record of what the bytes should be.
  3. Verify quarterly for cold data: sha256sum -c hashes.sha256. A mismatch is a finding, not a nuisance.
  4. On a mismatch, do not overwrite: copy the intact replica back and log the date and the medium.
  5. Re-verify after every migration, before retiring a disk, and rehearse one restore.
  6. 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