检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
If you delete a version with the Delete Marker, the file will be recovered and retained in the Objects list. If you delete a version without the Delete Marker, that version will be permanently deleted.
If you delete a version without the Delete Marker, that specific version is deleted permanently. Even if the object is recovered later, this version will not be recovered. At least one version without the Delete Marker exists in the Deleted Objects list.
Alternatively, you can click Delete All above the list to delete all fragments. obsutil With obsutil, you can delete the failed or interrupted multipart upload task to delete fragments generated by the task.
Delete a version of the object by choosing More > Delete in the Operation column. If you delete the latest version, the most recent version will become the latest version.
You can select an object and click Delete on the right to delete the object. After the object is deleted, OBS generates a Delete Marker with a unique version ID for the deleted object, and the deleted object is displayed in the Deleted Objects list.
Using a Lifecycle Rule to Delete Objects from a WORM-Enabled Bucket You can configure a lifecycle rule to let OBS automatically expire and delete objects in a WORM enabled bucket.
In the Fragments window, select the unwanted fragments and click Delete above the list. You can also click Delete All above the list to delete all fragments. Click in the upper right corner to refresh the fragment list, as shown in Figure 1.
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.
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.
to delete objects in a batch.
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.
delete_object(&option,&object_info,&resqonseHandler, &ret_status); if (OBS_STATUS_OK == ret_status) { printf("delete object successfully. \n"); } else { printf("delete object failed(%s).
Definition: Whether to remove expired delete markers 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.)