import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
client.storage.object_storages.buckets.delete(
bucket_name="bucket_name",
storage_id=0,
)
This response has no body data.
S3-Compatible Storage
Delete bucket
Removes a bucket from an S3-compatible storage. All objects in the bucket will be deleted.
DELETE
/
storage
/
v4
/
object_storages
/
{storage_id}
/
buckets
/
{bucket_name}
Python
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
client.storage.object_storages.buckets.delete(
bucket_name="bucket_name",
storage_id=0,
)