使用 AWS re:Post 即表示您同意 AWS re:Post 使用條款

Delete marker not available when i delete object in a versioned bucket

0

I uploaded multiple versions of the same object to my versioning enabled bucket. When i delete the standalone object without adding additional versions, i can see the delete marker. but when i delete the one of the versions or the current version, i am not able to see the delete marker. I used the toggle button (versions) still no delete marker is seen.

My question is- does deletion of versions of an object create a delete marker? or is delete marker only valid for a single object without additional versions.

Pl guide me Thank u

已提問 1 年前檢視次數 321 次
1 個回答
0

Deleting an object version explicitly and permanently deletes that object version. A delete marker is not created.

When you access an object in S3, you can do so without specifying an object version (see https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html#AmazonS3-GetObject-request-querystring-VersionId). If an object does not exist, a 404 will be returned. That will also be returned if a delete marker is the most recent "version" of an object. This allows the non-current object versions to continue to exist, while still returning results consistent with a deletion.

There would be no role for a delete marker for a object version, as the object version is permanently deleted, and any attempt to explicitly access it by it's versionId would return a 404.

https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html

profile pictureAWS
專家
已回答 1 年前
profile picture
專家
已審閱 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南