Delete Bucket
DELETE https://infrahub-api.nexgencloud.com/v1/object-storage/buckets/{bucket_name}
Delete a specific bucket from your Object Storage account. This action is irreversible and will permanently remove the bucket and all stored objects within it.
Path Parameters
bucket_name string
required
The name of the bucket to delete.
Query Parameters
region string
required
The region where the bucket is located.
Attributes
The response contains a confirmation message:
Show attributes
message string
A message confirming the successful deletion of the bucket.
Example request
curl -X DELETE "https://infrahub-api.nexgencloud.com/v1/object-storage/buckets/my-dataset?region=CANADA-1" \
-H "accept: application/json" \
-H "api_key: YOUR API KEY"
- Include an
api_key
in the header to authenticate your request. Learn more
Response
{
"message": "Bucket deleted successfully."
}
Returns
Returns a confirmation message indicating that the bucket was successfully deleted.