Deleting or Disabling the Object Lifecycle Policy from Object Storage

Delete or disable a lifecycle policy for an Object Storage bucket.

The system stops running disabled or deleted rules immediately.

    1. Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
    2. Select the compartment from the list under List Scope. All buckets in that compartment are listed in tabular form.
    3. Click the bucket whose lifecycle policy rule you want to delete. The bucket's Details page appears.
    4. Click Lifecycle Policy Rules under Resources. The Lifecycle Policy Rules list appears. All lifecycle policy rules are listed in tabular form.
    5. Click the Actions menu (Actions Menu) next the lifecycle policy rule that you want to disable or delete, and select one of the following options:
      • Disable (is displayed only if the rule is enabled)

      • Delete

    6. If you choose to delete the rule, then confirm the deletion.

    If you disabled the lifecycle policy rule, the rule appears in the Lifecycle Policy Rules list displaying Disabled under the State column. If you deleted the rule, it no longer appears in the list.

  • Use the oci os object-lifecycle-policy delete command and required parameters to delete the object lifecycle policy of a bucket:

    oci os object-lifecycle-policy delete --bucket-name bucket_name

    For example:

    oci os object-lifecycle-policy delete --bucket-name MyStandardTierBucket
    Are you sure you want to delete this resource? [y/N]: y

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the DeleteObjectLifecyclePolicy operation to delete the object lifecycle policy of a bucket.