import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.storage.buckets.delete( bucket_name="bucket_name", storage_id=0,)
Copy
Ask AI
This response has no body data.
Storage
Delete S3 bucket
Removes a bucket from an S3 storage. All objects in the bucket will be automatically deleted before the bucket is removed.
Deprecated: Use DELETE /provisioning/v3/storages//buckets/ instead.
DELETE
/
storage
/
provisioning
/
v1
/
storage
/
{storage_id}
/
s3
/
bucket
/
{bucket_name}
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.storage.buckets.delete( bucket_name="bucket_name", storage_id=0,)