检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Objects in a Batch You can call ObsClient.DeleteObjects to batch delete specific versions of an object by passing the VersionId value of each version to delete.
You can also specify Delete Objects After (Days) in a lifecycle rule to delete objects in batches or empty buckets. For details, see Configuring a Lifecycle Rule. OBS Browser+ Supported.
Sample Request 1 2 3 4 5 6 DELETE /?
If an object is deleted with no version ID specified, the object is only attached with a delete marker whose version ID is null. Objects with version ID null are physically deleted. Except for delete markers, storage space occupied by objects with all version IDs is billed.
You can specify a version ID to delete a specific object. If an object is deleted with no version ID specified, OBS creates a delete marker with a version ID of null and deletes the object whose version ID is null.
DELETE Bucket website OBSDeleteBucketWebsiteRequest PUT Bucket versioning OBSSetBucketVersioningRequest GET Bucket versioning OBSGetBucketVersioningRequest PUT Bucket cors OBSSetBucketCORSRequest GET Bucket cors OBSGetBucketCORSRequest DELETE Bucket cors OBSDeleteBucketCORSRequest
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. DeleteMarkerVersionId string Explanation: Version ID of a delete marker to create or delete.
You can call ObsClient.DeleteBucketTagging to delete bucket tags. Sample code is as follows: // Initialize configuration parameters. ObsConfig config = new ObsConfig(); config.Endpoint = "https://your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
You can call ObsClient.DeleteBucketLifecycle to delete lifecycle rules. This example deletes the lifecycle configuration of bucket bucketname. The example code is as follows: // Initialize configuration parameters.
You can call ObsClient.DeleteBucketCors to delete CORS rules of a bucket. This example deletes the CORS rule of bucket bucketname. The example code is as follows: // Initialize configuration parameters.
You can call ObsClient.DeleteBucketWebsite to delete the hosting settings of a bucket. This example deletes the hosting configuration of bucket bucketname. The example code is as follows: // Initialize configuration parameters.
You can call ObsClient.DeleteBucket to delete a bucket. Sample code is as follows: // Initialize configuration parameters. ObsConfig config = new ObsConfig(); config.Endpoint = "https://your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
If an object is deleted with no version ID specified, the object is only attached with a delete marker whose version ID is null. Objects with version ID null are physically deleted. Except for delete markers, storage space occupied by objects with all version IDs is billed.
GET tagging Yes No DELETE Bucket tagging DELETE tagging Yes No PUT Object PUT N/A Yes Yes GET Object GET N/A Yes Yes PUT Object - Copy PUT N/A Yes Yes DELETE Object DELETE N/A Yes Yes DELETE Objects POST delete Yes Yes Obtain Object Metadata HEAD N/A Yes Yes Configure Object ACL
If an object is deleted with no version ID specified, the object is only attached with a delete marker whose version ID is null. Objects with version ID null are physically deleted. Except for delete markers, storage space occupied by objects with all version IDs is billed.
Sample Request DELETE /?
Sample Request DELETE /?
Value range: true: Expired delete markers are removed. false: Expired delete markers are not removed. Default value: N/A Transition Used to transition objects between storage classes Days (Use either Days or Date.)
DeleteObject: Delete objects. DeleteObjectVersion: Delete objects and their versions. Each API requires an operation permission. Users can call these APIs directly or through SDKs.
Restore the system environment variable: Delete the path of obsutil that is set in the /etc/profile file. If the /etc/profile file contains line export PATH=$PATH:/obsutil, delete the line.