检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
ObsClient obsClient = new ObsClient(ak, sk, endPoint); // Delete a bucket. obsClient.deleteBucket("bucketname"); Only empty buckets (without objects and part fragments) can be deleted.
Bucket policy DELETE policy Yes No PUT Bucket lifecycle PUT lifecycle Yes No GET Bucket lifecycle GET lifecycle Yes No DELETE Bucket lifecycle DELETE lifecycle Yes No PUT Bucket website PUT website Yes No GET Bucket website GET website Yes No DELETE Bucket website DELETE website
/obsutil rm obs://bucket-test -f command to delete bucket bucket-test. ./obsutil rm obs://bucket-test -f Delete bucket [bucket-test] successfully! Parent topic: Getting Started
SpecialParamEnum.APPEND Yes Yes Get Object HttpMethodEnum.GET N/A Yes Yes Copy Object HttpMethodEnum.PUT N/A Yes Yes Delete Object HttpMethodEnum.DELETE N/A Yes Yes Delete Objects HttpMethodEnum.POST SpecialParamEnum.DELETE Yes Yes Get Object Metadata HttpMethodEnum.HEAD N/A Yes
Bucket: "examplebucket" }; // Delete the bucket tag configuration. const result = await obsClient.deleteBucketTagging(params); if (result.CommonMsg.Status <= 300) { console.log("Delete bucket(%s)'s tagging configuration successful!"
Table 7 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.
You do not need to create the bucket again. 409 Conflict BucketNotEmpty The bucket that you tried to delete is not empty. Delete the objects in the bucket and then delete the bucket. 409 Conflict InvalidBucketState Invalid bucket status.
You do not need to create the bucket again. 409 Conflict BucketNotEmpty The bucket that you tried to delete is not empty. Delete the objects in the bucket and then delete the bucket. 409 Conflict InvalidBucketState Invalid bucket status.
You do not need to create the bucket again. 409 Conflict BucketNotEmpty The bucket that you tried to delete is not empty. Delete the objects in the bucket and then delete the bucket. 409 Conflict InvalidBucketState Invalid bucket status.
You can call ObsClient->deleteBucket to delete a bucket.
Except for delete markers, storage space occupied by objects with all version IDs is billed. VersionStatusEnum.Suspended Sample code: // Initialize configuration parameters.
Value range: true: The deleted object is a delete marker. false: The deleted object is not a delete marker.
You can call ObsClient.deleteBucket to delete a bucket. Sample code is as follows: // Create an instance of ObsClient. var obsClient = new ObsClient({ // Hard-coded or plaintext AK/SK are risky.
If the list of objects is displayed and you can download objects, but you cannot upload or delete objects or perform any other operations, the Tenant Guest permission granted has already taken effect. Parent Topic: Configuring IAM Permissions
If the list of objects is displayed and you can download objects, but you cannot upload or delete objects or perform any other operations, the Tenant Guest permission granted has already taken effect. Parent Topic: Configuring IAM Permissions
Except for delete markers, storage space occupied by objects with all version IDs is billed. OBSVersioningStatusEnabled Suspended Existing objects with version IDs are not affected.
Except for delete markers, storage space occupied by objects with all version IDs is billed. OBS_VERSION_STATUS_ENABLED Suspended Noncurrent object versions are not affected.
If all versions of an object with the prefix1/ prefix have been deleted and only one expired delete marker remains, this rule lets OBS remove this expired delete marker. 1 2 3 4 5 6 7 8 9 10 </LifecycleConfiguration> <Rule> <ID>sample-rule</ID> <Prefix>
Lifecycle Management Lifecycle management allows you to configure rules to periodically delete objects from a bucket or transition objects between storage classes (for example, transition to the Archive or Infrequent Access storage class).
You do not need to create the bucket again. 409 Conflict BucketNotEmpty The bucket that you tried to delete is not empty. Delete the objects in the bucket and then delete the bucket. 409 Conflict FsObjectConflict File upload or creation failed. Check the file creation rule.