Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When using Versioning, what happens if a user with WRITE permissions performs a DELETE operation on an object?

0
10 Posted

When using Versioning, what happens if a user with WRITE permissions performs a DELETE operation on an object?

0
10

When a user performs a DELETE operation on an object, the most recently written version of that object is no longer retrievable via version-unaware operations. In addition, a Delete Marker is created to represent the fact that a user has performed a DELETE on the object. This Delete Marker is itself given a version id; however it has no data associated with it other than a Creation Date and Owner (whoever performed the DELETE). In essence, this Delete Marker becomes the most recently written version of the object. Subsequent version-unaware operations on this object will retrieve the Delete Marker, resulting in a 404 error, similar to the behavior when Versioning is turned off. However, all versions of that object continue to be preserved in your Amazon S3 bucket and are retrievable by version-aware operations (i.e. operations that specify a key and version id). For example, if you have several versions of an object with the key bird.jpg and you perform a DELETE on that object, then pe

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.