0026-00000202

Updated at:

Problem description

You cannot delete or modify a protected object in a bucket.

Causes

You initiated a request to delete or modify an object, but the object is within the retention period. The retention period is specified in the retention policy that is configured for the bucket in which the object is stored. As a result, the error is returned.

Examples

The following code shows a sample request:

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****************

If a retention policy is enabled for the wormbucket bucket and the object that you want to delete or modify is within the retention period, the error is returned.

Solutions

Delete or modify the object after the retention period elapses. To obtain the information about the retention period of the object, call the GetBucketWorm operation.

References

Retention policies