Page tree

Retention policy duration in seconds


Google Definition

This list constraint defines the set of durations for retention policies that can be set on Cloud Storage buckets.

By default, if no organisation policy is specified, a Cloud Storage bucket can have a retention policy of any duration.
The list of allowed durations must be specified as a positive integer value greater than zero, representing the retention policy in seconds.
Any insert, update or patch operation on a bucket in the organisation resource must have a retention policy duration that matches the constraint.

Enforcement of this constraint is not retroactive.
When a new organisation policy is applied, the retention policy of existing buckets remains unchanged and valid.

Affected Resources:

  • Cloud Storage

In Solvay...

Only applicable for Project level which requires data retention policy.

You can include a retention policy when creating a new bucket, or you can add a retention policy to an existing bucket.
Placing a retention policy on a bucket ensures that all current and future objects in the bucket cannot be deleted or replaced until they reach the age you define in the retention policy.
Attempts to delete or replace objects whose age is less than the retention period fail with a 403 - retentionPolicyNotMet error.


Contact the GCP CloudOps team for the delete request.


The best way to get IT support is to use the new Service One Platform.