Skip to main content
Google Cloud

Cloud Storage Classes, Lifecycle Rules, and Costs Compared

Pick a Google Cloud Storage class: Standard, Nearline, Coldline, and Archive compared, with minimum durations, Autoclass, lifecycle rules, and soft delete.

Last checked against Google's official documentation on .

Cloud Storage Classes, Lifecycle Rules, and Costs Compared

Google Cloud Storage is the simplest Google Cloud service to start using and one of the easiest to overspend on. A bucket created with default settings keeps every file in the most expensive class forever, even the backups nobody has opened since they were written. Choosing the right class and adding a few lifecycle rules can cut storage costs sharply without changing a line of code. Here is how the storage classes, their pricing and lifecycle rules fit together.

This guide compares the four storage classes, explains the minimum durations and retrieval fees that catch people out, and shows how Autoclass, lifecycle rules, and soft delete fit together. It is aimed at admins storing backups, exports, logs, and media, including data exported from Google Workspace.

Key Takeaways

  • Standard, Nearline, Coldline, Archive: colder means cheaper to store, dearer to read.
  • Minimums are 30, 90, and 365 days for the colder classes.
  • All classes give millisecond access; there is no restore wait.
  • Use Autoclass when access is unpredictable, lifecycle rules when it is not.
  • Soft delete keeps deleted objects for 7 days by default and is billed as storage.

Table of contents

Open Table of contents

The Four Storage Classes

Cloud Storage classes compared

ClassTypical accessMinimum durationRetrieval feeGood for
StandardFrequentNoneNoneWebsites, active data, analytics
NearlineAbout once a month30 daysYes, lowRecent backups, monthly reports
ColdlineAbout once a quarter90 daysYes, higherOlder backups, disaster recovery
ArchiveLess than once a year365 daysYes, highestCompliance archives, legal holds

Google also lists a fifth primary class, Rapid, a high-performance class with no minimum duration that only works with zonal buckets and targets I/O-heavy AI, ML, and analytics workloads. This guide focuses on the four classes above, which cover backups, exports, and archives.

Storage prices drop with each colder class and vary by location. Check the Cloud Storage pricing page for your region, because a bucket in Mumbai is priced differently from one in Iowa.

Two points surprise people coming from other archive services. First, every class gives millisecond access; Archive is not tape, and there is no restore job. Second, the classes share one API, so applications do not change when data moves between them.

Minimum Durations and Early Deletion

The colder classes have minimum storage durations. If you delete, replace, or move an object before the minimum, you are charged as if it had stayed the full period.

That makes a mistake like this expensive: putting daily database dumps in Archive and deleting them after a week. You pay for 365 days of storage on every dump. Match the class to how long the data really lives.

Locations

Every bucket has a location type:

  • Region: one region, such as asia-south1. Lowest cost and latency for workloads in that region.
  • Dual-region: two specific regions, such as a pair in India where available. Higher availability with known locations.
  • Multi-region: a large area such as Asia. Highest availability, data placement chosen by Google within the area.

For data residency, regional or dual-region buckets in India are the usual choice. Restrict allowed locations with the gcp.resourceLocations organization policy, described in our organization policies guide.

Autoclass

Autoclass manages classes for you. Based on Google’s documentation:

  • New objects start in Standard.
  • Objects not read for 30 days move to Nearline, which is the default terminal class.
  • If you set Archive as the terminal class, objects move to Coldline after 90 days and Archive after 365 days without access.
  • Reading an object moves it back to Standard.
  • Objects smaller than 128 KiB stay in Standard.

Autoclass charges a management fee and a one-time enablement charge when you turn it on, but no retrieval or early deletion fees on managed objects. It suits buckets where you cannot predict access, such as shared file stores.

Lifecycle Rules

When access patterns are predictable, lifecycle rules are cheaper and more precise. A rule has a condition (age, creation date, storage class, number of newer versions) and an action (set storage class, delete, or abort incomplete uploads).

A typical backup bucket:

{
  "lifecycle": {
    "rule": [
      {"action": {"type": "SetStorageClass", "storageClass": "NEARLINE"}, "condition": {"age": 30}},
      {"action": {"type": "SetStorageClass", "storageClass": "COLDLINE"}, "condition": {"age": 90}},
      {"action": {"type": "Delete"}, "condition": {"age": 400}}
    ]
  }
}

Apply it with:

gcloud storage buckets update gs://acme-backups --lifecycle-file=lifecycle.json

Add a rule to abort incomplete multipart uploads after a few days, and if you use object versioning, a rule to delete noncurrent versions after a set number of days. Forgotten versions are a common hidden cost.

Soft Delete, Versioning, and Retention

These three features protect data in different ways.

  • Soft delete keeps deleted or overwritten objects recoverable for a retention period, seven days by default on new buckets. You can raise it up to 90 days or turn it off. Soft-deleted bytes are billed as storage.
  • Object versioning keeps older versions of objects until a lifecycle rule removes them.
  • Retention policies and bucket lock prevent deletion until objects reach a set age, which compliance teams use for records that must not be altered.

Object holds

Holds freeze individual objects, which is useful for legal or audit requests on top of a bucket retention policy. While an object has a hold it can’t be deleted or replaced, though its metadata can still change, and lifecycle rules only delete it after the hold is released. There are two types:

  • A temporary hold simply pauses deletion. Releasing it doesn’t change how long the object has been in the bucket, so if the retention period has already passed it can be deleted straight away.
  • An event-based hold restarts the retention clock when released. With a one-year policy, a document held until a loan is repaid must then stay another full year. You can turn on a default event-based hold so every new object in the bucket gets one automatically.

Holds can’t be managed through the XML API and aren’t supported on buckets with hierarchical namespace.

For backups, a sensible combination is soft delete at the default, versioning off, and a retention policy if regulations require it. For a busy bucket with frequent overwrites, consider whether you need soft delete at all, because every overwrite keeps a soft-deleted copy.

Access Control

New organizations enforce uniform bucket-level access, so permissions are set on the bucket with IAM rather than per object. Also enforce storage.publicAccessPrevention unless a bucket is meant to be public. Grant roles such as Storage Object Viewer to groups, not individuals; see our IAM guide.

Choosing a Setup: Three Examples

UseLocationClass strategy
Website assetsRegion or multi-regionStandard
Nightly backups kept 13 monthsRegion in IndiaStandard, Nearline at 30 days, Coldline at 90, delete at 400
Seven-year compliance archiveDual-regionArchive with a retention policy
Shared team file store with unknown accessRegionAutoclass

Common Mistakes

  • Everything in Standard forever.
  • Short-lived data in Archive, paying the 365-day minimum each time.
  • Versioning without a cleanup rule.
  • Ignoring soft-deleted bytes on buckets with frequent overwrites.
  • Public buckets by accident, prevented by organization policy.

Moving an Existing Bucket to the Right Class

Most organizations already have buckets full of data in Standard. To fix them without breaking anything:

  1. Find the big buckets. The Cloud Storage page shows bucket sizes, and Storage Insights can produce inventory reports for large estates.
  2. Learn the access pattern. Ask the owner how often data is read, or check data access logs for a sample period.
  3. Choose lifecycle rules or Autoclass. Predictable data gets lifecycle rules; unpredictable data gets Autoclass.
  4. Apply to a test bucket first and confirm applications still work, which they should, because the API does not change.
  5. Apply to production and check the next billing cycle for the expected drop.

Lifecycle rules apply to existing objects as well as new ones, so a rule that moves objects older than 90 days to Coldline affects historical data at the next evaluation. Changes to a lifecycle configuration can take up to 24 hours to take effect, and moving objects with SetStorageClass doesn’t trigger retrieval or early deletion fees. Each transition is billed as a Class A operation, so exclude very small objects with sizeAboveBytes.

Understanding the Bill

Cloud Storage charges for four things, and the class you choose changes the balance between them:

ChargeWhat drives itEffect of colder classes
StorageGB stored per monthLower
OperationsNumber of reads, writes, and listsHigher per operation
RetrievalGB read from Nearline, Coldline, or ArchiveHigher
Data transferGB leaving the region or Google CloudUnchanged

A bucket that is written once and read rarely saves money in a colder class. A bucket that is read heavily, such as one serving images to a website, costs more in a colder class because retrieval and operation charges outweigh the storage saving.

Securing Buckets

Storage class decides cost; access settings decide risk. A short checklist for every bucket:

  • Uniform bucket-level access on
  • Public access prevention enforced, unless the bucket serves a public website
  • Roles granted to groups or service accounts, never allUsers
  • Data access audit logs enabled for buckets with sensitive data
  • Customer-managed encryption keys where policy requires them
  • Soft delete and, where needed, a retention policy configured

When someone outside the company needs a single file, use a signed URL instead of making anything public. A signed URL grants time-limited access to one object:

gcloud storage sign-url gs://acme-reports/q3-summary.pdf \
  --duration=2h --impersonate-service-account=signer@acme-reports.iam.gserviceaccount.com

The link stops working after the duration, and no IAM change is needed.

Conclusion

Cloud Storage costs are mostly a configuration choice. Pick the class from how often data is read and how long it lives, automate transitions with lifecycle rules or Autoclass, and keep soft delete and versioning in check.

If you export Google Workspace data with Vault or a backup tool, a lifecycle-managed bucket in an Indian region is a cheap and compliant home for it. Tomorrow’s guide covers Security Command Center: tiers, findings, and what to fix first.


Official Google documentation:

Related reading:

This guide contains referral or affiliate links. If you sign up through one, Workspace Blog may earn a commission at no extra cost to you. Read our referral and advertising disclosure.

Frequently Asked Questions

What are the Google Cloud Storage classes?
For regional, dual-region, and multi-region buckets there are four: Standard for frequently accessed data, Nearline for data accessed about once a month, Coldline for data accessed about once a quarter, and Archive for data accessed less than once a year. Colder classes cost less to store but more to read, and they have minimum storage durations. Google also lists Rapid, a high-performance class for zonal buckets aimed at AI, ML, and analytics workloads.
What are the minimum storage durations?
Nearline has a 30-day minimum, Coldline 90 days, and Archive 365 days. If you delete or move an object earlier, you are charged as if it had been stored for the full minimum. Standard has no minimum.
What does Autoclass do?
Autoclass moves objects between classes automatically based on access. Google's documentation says new objects start in Standard, move to Nearline after 30 days without access, and, if you choose Archive as the terminal class, to Coldline after 90 days and Archive after 365 days. Reading an object moves it back to Standard. Autoclass adds a management fee and a one-time enablement charge, but no retrieval or early deletion fees on managed objects.
What is soft delete in Cloud Storage?
Soft delete keeps deleted objects recoverable for a retention period, seven days by default on new buckets. You can set it anywhere from 7 to 90 days, or turn it off. Soft-deleted data is billed as storage during the retention period.
Is archive storage in Cloud Storage slow to retrieve?
No. Unlike some archive services, all Cloud Storage classes give millisecond access to data. The difference is cost: reading Nearline, Coldline, or Archive data has a per-GB retrieval fee, and early deletion charges apply.