Deleting an Object Storage Data 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 Data Retention Rules.
- 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 bucket, see Listing Buckets.
- On the details page, select Policies and find the Retention rules section.
- From the Actions menu for the data retention rule you want, select Delete rule.
- 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]: yFor 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.