检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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!
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.
Deleting an Object Deleting a Single Object You can call deleteObject to delete a single object. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
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 object or folder you want to delete and choose More > Delete on the right. You can select multiple objects 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.
Deleting Bucket Tags You can call deleteBucketTagging to delete bucket tags. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Deleting Hosting Settings You can call deleteBucketWebsite to delete the hosting settings of a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Deleting CORS Rules You can call deleteBucketCORS to delete CORS rules from a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
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.
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 /?
Disabling Bucket Logging You can call setBucketLogging to delete all logs of a bucket so as to disable logging of the bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
The Delete function can delete only local task data. Parent topic: Task Management
a delete marker in a bucket with versioning enabled.
delete_bucket_tagging(&option, &response_handler, &ret_status); if (OBS_STATUS_OK == ret_status) { printf("delete bucket tagging successfully.\n"); } else { printf("delete bucket tagging failed(%s).