Deleting Oracle Cloud Infrastructure Bucket and Objects

To delete the OCI Bucket Objects and the Bucket for RMAN Lift:

  1. Delete all OCI Bucket Objects (This does not prompt for confirmation (--force))

    oci os object bulk-delete -ns <Tenancy_Name> -bn <Bucket_Name> --config-file <oci_config> --force
  2. Delete all OCI Bucket

    oci os bucket delete -ns <Tenancy_Name> --name <Bucket_Name>  --config-file <oci_config>

    Example:

    Tenancy_Name = Intxxxxx
    
    Bucket_Name = PSPDB_1348135976_25092018
    
    oci_config = <oci_config_filepath>
    
    oci_config_filepath:
    
     [DEFAULT]
     user=ocid1.user.oc1..aaaaaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     fingerprint=36:d6:c7:9b:d4:21:d7:ad:10:70:4f:58:b7:70:0f:fb
     key_file=/tmp/key.pem
     pass_phrase=XXXXXXXXXX
     tenancy=ocid1.tenancy.oc1..aaaaaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     region=us-ashburn-1
     oci_username=xxxxx.xxxx@oracle.com
     oci_token=YYYYYYYYYYYYYY
     oci_tenancy_name=intxxxxx