Deleting a Bucket
On Compute Cloud@Customer, you can permanently delete an empty bucket.
You can't recover a deleted bucket.
You can't delete a bucket that contains any of the following:
-
Any objects
-
Previous versions of an object
-
A multipart upload in progress
-
A preauthenticated request
When you delete an object in a version-enabled bucket, a previous version of that object is created. Select Show Deleted Objects to display the object versions that might prevent you from deleting the bucket. For more information, see Managing Object Versioning.
This task isn't available in the Console.
Use the oci os bucket delete command and required parameters to delete a bucket if the bucket is empty.
oci os bucket delete --namespace-name <object_storage_namespace> --bucket-name <bucket_name>[OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the DeleteBucket operation to delete a bucket if the bucket is empty.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.