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. On the Buckets list page, select the Object Storage bucket that you want to work with. If you need help finding the list page or the Object Storage bucket, see Listing Buckets.
    2. On the details page, select Retention Rules.
    3. From the Actions menu for the retention rule you want, select Delete.
    4. When prompted, 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.