检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Deleting Buckets Scenarios You can delete unwanted buckets to free up the quota of buckets. Make sure that a bucket is emptied before you delete it. An empty bucket must meet the following requirements: There is no object or any historical version of an object in the bucket.
Run the obsutil rm obs://bucket-test command to delete bucket bucket-test. obsutil rm obs://bucket-test Start at 2024-09-30 07:58:33.736622 +0000 UTC Do you want to delete bucket [bucket-test] ? Please input (y/n) to confirm: y Delete bucket [bucket-test] successfully!
bucketname := "examplebucket" // Delete the tags from the bucket. output, err := obsClient.DeleteBucketTagging(bucketname) if err == nil { fmt.Printf("Delete bucket(%s)'s tagging configuration successful!
Select the file or folder you want to delete and choose More > Delete on the right. You can select multiple files or folders and click Delete above the object list to batch delete them. Figure 1 Deleting a file or folder Click OK to confirm the deletion.
Sample Request 1 2 3 4 5 6 DELETE /?
Sample Request 1 2 3 4 5 6 DELETE /?
Sample Request 1 2 3 4 5 6 DELETE /?
Scenarios where data can be deleted or overwritten: Use OBS Console, API, SDKs, OBS Browser+, obsutil, or obsfs to delete objects. For details, see Deleting an Object.
Run the obsutil bucketpolicy obs://bucket -method=delete command to delete a bucket policy. obsutil bucketpolicy obs://bucket -method=delete Start at 2024-09-30 08:09:29.6396262 +0000 UTC Delete bucketPolicy succeed, requestId is [04050000016836C5DA6FB21F14A2A0C0] Parameter Description
Sample Request 1 2 3 4 DELETE /?
Expired delete markers NOTE: An expired delete marker is the only single delete marker that remains after all historical versions of an object are deleted. Removing expired delete markers helps improve performance.
The Delete function can delete only local task data. Parent topic: Task Management
When versioning is enabled for a bucket, a delete request that does not specify a version ID cannot permanently delete the object. Instead, OBS creates a delete marker with a unique version ID.
Sample Request 1 2 3 4 5 6 DELETE /?
Deleting All Multipart Upload Tasks in a Bucket All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.
Deleting All Multipart Upload Tasks in a Bucket All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.
Scenarios Where Data May Be Deleted or Overwritten You use OBS Console, API, SDKs, OBS Browser+, obsutil, or obsfs to delete objects. For details, see Deleting an Object.
Figure 1 Completed task list (Optional) Select one or more tasks and click Delete (). You are advised to periodically delete the completed tasks from the list. For details, see Why Does the Task Processing Speed Slow After the Number of Tasks Exceeds a Million?
Sample Request 1 2 3 4 5 6 DELETE /?
Click Delete in the Operation column to delete the bucket. Ensure that the bucket does not exist in the list. You are billed one hour after the resource usage is calculated, so a bill may still be generated after a pay-per-use resource is deleted.