Deleting an Object Storage Retention Rule

Delete a retention rule from an Object Storage bucket.

You can get the retention rule's ID by running the list command. See Listing Object Storage Retention Rules.

    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. This is the compartment where the bucket you create is located.
    3. Click the bucket whose retention rule you want to delete. The bucket's Details page appears.
    4. Click Retention Rules under Resources. The Retention Rules list appears. All retention rules are listed in tabular form.
    5. Click the Actions menu (Actions Menu) next to the retention rule, and then click select Delete. The Edit Retention Rule dialog box appears.
    6. Confirm the deletion.

    The retention rule you deleted to longer appears in the Retention Rules list.

  • Use the oci os retention-rule delete command and required parameters to delete a retention rule from a bucket:

    oci os retention-rule delete --bucket-name bucket_name --retention-rule-id retention_rule_id [OPTIONS]

    For example:

    oci os retention-rule delete --bucket-name MyBucket --retention-rule-id 4ed833b1-fb27-4a40-a8ab-14e09636a724
    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 DeleteRetentionRule operation to delete a retention rule from a bucket.