检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Deleting a Bucket You can call deleteBucket to delete a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
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.
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.
For example, 2018-01-01T00:00:00.000Z indicates only objects that were last modified before the specified time are deleted.
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.
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.
Bucket deletion is a non-idempotence operation and an error will be reported if the bucket you want to delete does not exist.
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.
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.
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.
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)
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.
Delete buckets. Get the bucket list or configuration information. Basic object management Allows you to upload, download, delete, and list objects. In detail, you can: Upload one or more files or folders. Upload large files in multipart uploads.