Problem description
This error occurs when you try to delete or modify an object that is protected by a retention policy.
Causes
The object is within the retention period defined by the retention policy on its bucket. OSS blocks all delete and modify operations on the object until the retention period elapses.
Examples
The following request triggers this error. The bucket wormbucket has a retention policy enabled, and test.txt is within the retention period:
DELETE /test.txt HTTP/1.1
Host: wormbucket.oss-cn-zhangjiakou.aliyuncs.com
Date: Wed, 02 Jan 2019 13:28:38 GMT
Authorization: OSS qn6q**************:77Dv****************Solutions
Wait until the retention period elapses, then delete or modify the object.
To obtain the information about the retention period, call GetBucketWorm.
References
该文章对您有帮助吗?