Versioning enabled for my s3 bucket. but when i delete a file . it gets deleted

0

Hi, I am a beginner to AWS. I have learned that ' If versioning is enabled for the s3 bucket and we delete an object, it won't get deleted and there will be a deletion marker ". I have enabled versioning in my S3 bucket and I have uploaded multiple versions of my object. but when I delete AWS is asking me for a permanent deletion confirmation and it is deleting it permanently. Please guide me if I didn't enable anything

질문됨 일 년 전1035회 조회
1개 답변
3
수락된 답변

Hi,

If you have enabled versioning on the bucket, when you delete an object through the console, you will still be asked to confirm you want to delete it. As you rightly said, a deletion marker will be added to the object if versioning is enabled.

The AWS Console view of your S3 Bucket, by default, does not show all the versions of your object. If you toggle the "show versions" switch as highlighted below, you will be able to see the delete marker and original version of your object below that.

Enter image description here

If you have already toggled the versioning button as described above. Then you may well be selecting one of the specific versions to delete. These deletions are permanent, more information about this can be found here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html

AWS
Tom-B
답변함 일 년 전
profile picture
전문가
검토됨 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠