Deletes an empty bucket. The request fails if there are any live or noncurrent
objects in the bucket, but the request succeeds if the bucket only contains soft-deleted objects or
incomplete uploads, such as ongoing
XML API multipart uploads. Does not
delete soft-deleted objects.
When this API is used to delete a bucket with a soft delete policy, the bucket becomes soft-deleted and the softDeleteTime and hardDeleteTime properties are set on the bucket. Objects and multipart uploads that were in the bucket at the time of deletion are also retained for the specified retention duration. When a soft-deleted bucket reaches the end of its retention duration, it is permanently deleted. The hardDeleteTime of the bucket always equals or exceeds the expiration time of the last soft-deleted object in the bucket.
Required permissions
The authenticated user must have the storage.buckets.delete IAM
permission to use this method.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Buckets: delete\n\n**Requires [authorization](#auth)**\n\nDeletes an empty bucket. The request fails if there are any live or noncurrent\nobjects in the bucket, but the request succeeds if the bucket only contains soft-deleted objects or\nincomplete uploads, such as ongoing\n[XML API multipart uploads](/storage/docs/multipart-uploads). Does not\ndelete [soft-deleted objects](/storage/docs/soft-delete).\n\n\nWhen this API is used to delete a bucket with a [soft delete policy](/storage/docs/soft-delete), the bucket becomes soft-deleted and the `softDeleteTime` and `hardDeleteTime` properties are set on the bucket. Objects and multipart uploads that were in the bucket at the time of deletion are also retained for the specified retention duration. When a soft-deleted bucket reaches the end of its retention duration, it is permanently deleted. The `hardDeleteTime` of the bucket always equals or exceeds the expiration time of the last soft-deleted object in the bucket.\n\nRequired permissions\n--------------------\n\nThe authenticated user must have the `storage.buckets.delete` IAM\npermission to use this method.\n\nRequest\n-------\n\n### HTTP request\n\n```\nDELETE https://storage.googleapis.com/storage/v1/b/bucket\n```\n\nIn addition to [standard query parameters](/storage/docs/json_api/v1/parameters#query),\nthe following query parameters apply to this method.\n\nTo see an example of how to include query parameters in a request, see the\n[JSON API Overview](/storage/docs/json_api#query_parameters) page.\n\n### Parameters\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns an empty response body.\n\nFor information about status and error codes returned by this API, see the\n[reference page](/storage/docs/json_api/v1/status-codes).\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]