doc-exports/docs/obs/s3api/en-us_topic_0125560472.html
Jawei, Li 1a4c1a720a OBS s3api 2.0.38.SP5
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-16 14:51:13 +00:00

55 lines
4.5 KiB
HTML

<a name="EN-US_TOPIC_0125560472"></a><a name="EN-US_TOPIC_0125560472"></a>
<h1 class="topictitle1">DELETE Bucket</h1>
<div id="body57199365"><p id="EN-US_TOPIC_0125560472__p180015374561">You can use this operation to delete the buckets specified by a user.</p>
<p id="EN-US_TOPIC_0125560472__p17800163795619">Only the bucket owner and users who are granted the permission to delete buckets can delete buckets. Only an empty bucket can be deleted. If a bucket has an object or a multipart task, the bucket is not empty. You can determine whether a bucket is empty by listing objects and multipart upload tasks in the bucket.</p>
<div class="note" id="EN-US_TOPIC_0125560472__note2918837420251"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="EN-US_TOPIC_0125560472__p6136878120251">If a 5<em id="EN-US_TOPIC_0125560472__i177231848165611">xx</em> error is returned from the server or the request times out during bucket deletion, the system takes about 10 minutes to make bucket information consistent. During the process, bucket information is inaccurate.</p>
</div></div>
<div class="section" id="EN-US_TOPIC_0125560472__section45427372"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560472__screen4041866411559">DELETE / HTTP/1.1
User-Agent: agent
Host: bucketname.obs.example.com
Accept: */*
Date: date
Authorization: authorization</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section6193166"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560472__p26049988">This request involves no parameters.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section55738502"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560472__p29674277">This request uses common headers. For details about common request headers, see section <a href="en-us_topic_0125560462.html">Common Request Headers</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section31884476"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560472__p10117355">This request involves no elements.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section29213744"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560472__screen6690949311615">HTTP/1.1 status_code
Server: Server Name
x-amz-request-id: request id
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
x-amz-id-2: id
Date: date</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section61597110"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560472__p29540661">This response uses common headers. For details about common response headers, see section <a href="en-us_topic_0125560484.html">Common Response Headers</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section17503083"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560472__p5884060">This response involves no elements.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section23310024"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560472__p6846836">No special errors are returned. For details about error responses, see <a href="en-us_topic_0125560440.html#EN-US_TOPIC_0125560440__table30733758">Table 1</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section44557004"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560472__screen1742636911653">DELETE / HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.1
Host: bucketname.obs.example.com
Accept: */*
Date: Sat, 03 Dec 2011 07:07:35 +0000
Authorization: AWS BF6C09F302931425E9A7:lgEeRg8WE0XOpjurUSX26QDIZRw=</pre>
</div>
<div class="section" id="EN-US_TOPIC_0125560472__section65468724"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560472__screen342629951172">HTTP/1.1 204 No Content
Server: OBS
x-amz-request-id: 001B21A61C6C0000013402BFDBA85281
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
x-amz-id-2: MDAxQjIxQTYxQzZDMDAwMDAxMzQwMkJGREJBODUyODFBQUFBQUFBQWJiYmJiYmJi
Date: Sat, 03 Dec 2011 07:07:38 GMT</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560493.html">Operations on Buckets</a></div>
</div>
</div>