[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],null,["# Options for controlling data lifecycles\n\nIf you are concerned that your application software or users might erroneously\ndelete or replace objects at some point, Cloud Storage has features\nthat help you protect your data:\n\n- [**Soft delete**](/storage/docs/soft-delete) provides default bucket-level\n protection for your data from accidental or malicious deletion by preserving\n all recently deleted objects for a specified period of time. You can restore\n the deleted objects within this duration. For more information on how to\n restore soft-deleted objects, see [Use soft-deleted objects](/storage/docs/use-soft-deleted-objects).\n\n- [**Bucket Lock**](/storage/docs/bucket-lock): A retention policy that specifies a retention period\n can be [placed on a bucket](/storage/docs/using-bucket-lock#set-policy). Each object in the bucket must reach the\n specified age before it can be deleted or replaced.\n\n- [**Object Retention Lock**](/storage/docs/object-lock): A retention configuration that specifies a\n retain-until date and time can be [set for an individual object](/storage/docs/using-object-lock). The\n object cannot be deleted or replaced until after the specified date and time.\n\n- An [**object hold**](/storage/docs/object-holds) can be [placed on individual objects](/storage/docs/holding-objects#set-object-hold) to prevent\n anyone from deleting or replacing the object until the hold is removed.\n\n- [**Object Versioning**](/storage/docs/object-versioning) can be enabled on a bucket in order\n to retain older versions of objects. When the *live* version of an object is\n deleted or replaced, it becomes *noncurrent* if versioning is enabled on the\n bucket. If you accidentally delete a live object version, you can\n [restore the noncurrent version](/storage/docs/using-versioned-objects#restore) of it back to the live version.\n\n | **Caution:** Object Versioning **does not** protect your data if you [delete the entire bucket](/storage/docs/deleting-buckets).\n\n Object Versioning increases storage costs, but this can be partially\n mitigated by configuring [Object Lifecycle Management](/storage/docs/lifecycle) to delete older\n object versions. For one possible setup, see the lifecycle configuration\n example for [deleting objects](/storage/docs/lifecycle-configurations#deletion-example).\n- [**Object Lifecycle Management**](/storage/docs/lifecycle) can be configured for a bucket to give\n you more automated control over deleting objects. When you define a lifecycle\n configuration, Cloud Storage performs a specified action, such as\n deleting an object, only if the object meets your criteria.\n\nCloud Storage also has features that help manage your objects'\n[storage classes](/storage/docs/storage-classes):\n\n- [Object Lifecycle Management](/storage/docs/lifecycle) can be configured for a bucket to give you\n more automated control over moving objects to colder storage classes. When you\n define a lifecycle configuration, Cloud Storage performs a specified\n action, such as setting a colder storage class for an object, only if the\n object meets your criteria.\n\n- [Autoclass](/storage/docs/autoclass) can be enabled on a bucket, which lets Cloud Storage\n manage the storage classes of objects in the bucket automatically."]]