Bao Phan
Bao Phan

Reputation: 58

Can I restore a deleted version file in AWS S3 using the new console?

I have the following scenario where I uploaded a file into s3

I have 2 versions of test.txt and let's say I go ahead and delete my 10AM version so that i have the following

I assume that there's a delete marker that was created before latest version and I can remove it using the old console. Could I possibly do the same with the new console?

Upvotes: 1

Views: 980

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 270294

There's two types of Delete available on an Amazon S3 bucket that has Versioning enabled.

  • Delete the object: This adds a delete marker as the latest version.
  • Delete a specific version (done by providing a Version ID with the delete request): That version is deleted. No Delete Marker is created. Cannot be reversed.

You can also delete a Delete Marker, which is simply treated as a different version, so it is deleted just like deleting a specific version.

Upvotes: 2

Related Questions