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

preguntada hace un año1035 visualizaciones
1 Respuesta
3
Respuesta aceptada

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
respondido hace un año
profile picture
EXPERTO
revisado hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas