检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Default value: None deleteMarker boolean Explanation: Whether the deleted object is a delete marker. Value range: true: The deleted object is a delete marker. false: The deleted object is not a delete marker. Default value: false objectKey String Explanation: Object name.
Restrictions To delete the BPA configuration of a bucket, you must be the bucket owner or have the required permission (obs:bucket:DeleteBucketPublicAccessBlock in IAM or DeleteBucketPublicAccessBlock in a bucket policy).
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.
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.
Overview of Server-Side Encryption APIs You can use APIs to configure encryption for existing buckets, as well as obtain and delete encryption configuration of existing buckets.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API deletes the lifecycle rules of a bucket.
input.CustomDomain = "www.example.com" // Delete the user-defined domain name bound to the bucket. output, err := obsClient.DeleteBucketCustomDomain(input) if err == nil { fmt.Printf("Delete bucket(%s)'s customdomain successful!
input.Key = "example/objectname" // Delete the object. output, err := obsClient.DeleteObject(input) if err == nil { fmt.Printf("Delete object(%s) under the bucket(%s) successful!
bucketname := "examplebucket" // Delete the bucket. output, err := obsClient.DeleteBucket(bucketname) if err == nil { fmt.Printf("Delete bucket:%s successful!
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API returns the lifecycle rules of a bucket.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API returns the lifecycle rules of a bucket.
Table 5 DeleteObjectResponse Parameter Type Description deleteMarker bool Explanation: Whether the deleted object is a delete marker Value range: true: The deleted object is a delete marker. false: The deleted object is not a delete marker.
Bucket deletion is a non-idempotence operation and an error will be reported if the bucket you want to delete does not exist.
Obtaining the Lifecycle Configuration of a Bucket (SDK for Go) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Deleting Buckets Bucket Deletion Sample Code on GitHub OBS Error Codes Why Can't I Delete a Bucket? Parent topic: Bucket-Related APIs (SDK for Python)
Obtaining the Lifecycle Configuration of a Bucket (SDK for Python) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management.
Configuring Lifecycle Rules for a Bucket (SDK for Go) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Configuring Lifecycle Rules for a Bucket (SDK for Python) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.