检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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.
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.
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).
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.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.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 PUT Object acl PUT acl
You may configure lifecycle management rules to: Periodically delete files that are only meant to be retained for specified periods of time. Transition documents that are seldom accessed to the Infrequent Access or Archive storage class or delete them.
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).
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.
obs_response_handler resqonseHandler = { &response_properties_callback, &response_complete_callback }; // Delete an object.
Sample Request DELETE /?
Sample Request DELETE /?
/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
/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
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.
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?