检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Why Can't I Delete a Bucket? Why Can't I Delete an Object? Why Can't I Access an Object Through Its URL? How Do I Preview OBS Objects in My Web Browser? Can I Rename an Object? Can I Edit Objects in OBS Online? How Do I Obtain the Access Path to an Object?
To delete historical tasks, go to the Task Management page, select the completed tasks that you no longer need, and delete them, as shown in Figure 1. Figure 1 Deleting completed tasks Parent topic: FAQs
This operation can be performed only by the bucket owner and users who have been authorized (via a policy) with the permission to delete the bucket. The bucket to be deleted must be an empty bucket. If a bucket has an object or a multipart task, the bucket is not empty.
to delete objects in a batch.
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.
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 /?