检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Check whether there is a lifecycle rule configured to automatically delete objects after a certain date. Check whether the write permission to the bucket has been granted to other users. If it was, those other users can delete objects from the bucket.
delete_bucket_website_configuration(&option, &response_handler, &ret_status); if (OBS_STATUS_OK == ret_status) { printf("delete bucket website successfully.\n"); } else { printf("delete bucket website failed(%s).
Sample Request 1 2 3 4 5 6 DELETE /?
Deleting All Multipart Upload Tasks in a Bucket All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.
Deleting All Multipart Upload Tasks in a Bucket All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.
Deleting All Multipart Upload Tasks in a Bucket All commands in this section use the Linux operating system as an example to describe how to delete all multipart upload tasks in a bucket.
Figure 1 Completed task list (Optional) Select one or more tasks and click Delete (). You are advised to periodically delete the completed tasks from the list. For details, see Why Does the Task Processing Speed Slow After the Number of Tasks Exceeds a Million?
Sample Request 1 2 3 4 5 6 DELETE /?
Click Delete in the Operation column to delete the bucket. Ensure that the bucket does not exist in the list. You are billed one hour after the resource usage is calculated, so a bill may still be generated after a pay-per-use resource is deleted.
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.
Configuration Precautions After finishing the configuration, the IAM user can use APIs or SDKs to delete buckets. However, if they log in to OBS Console or OBS Browser+ to delete buckets, an error will be reported indicating that they do not have required permissions.
Deleting a file or folder does not delete it permanently. The deleted file or folder will be retained in the Deleted Objects list and marked with the Delete Marker. If you want to delete the file or folder permanently, you need to delete it from the Deleted Objects list.
If you want to encrypt existing objects, delete them and upload them again. Parent topic: Server-Side Encryption
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.
VersionId: 'G001117FCE89978B0000401205D5DC9A' }; // Delete a version of an object. const result = await obsClient.deleteObject(params); if (result.CommonMsg.Status <= 300) { console.log("Delete object(%s) under the bucket(%s) successful!"
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.
To clear up fragments, select all fragments and click Delete above the list. Parent topic: Billing
If the current object version is the only version of the object and has a delete marker, OBS will delete the current object version. Clearing a delete marker may take a while, because OBS needs to confirm that the delete marker is the only object version.
Lifecycle Management Overview OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object and delete expired objects, to effectively use storage features and optimize the storage space.
Bucket: "examplebucket", }; // Delete the lifecycle configuration of the bucket. const result = await obsClient.deleteBucketLifecycle(params); if (result.CommonMsg.Status <= 300) { console.log("Delete bucket(%s)'s lifecycle configuration successful!"