Deleting in a Versioned Bucket
Versioning is enabled on a bucket. Someone runs aws s3 rm s3://docs/plan.pdf (no version ID). What happens?
aws s3 rm s3://docs/plan.pdf
Choose one answer
The request fails, because objects in versioned buckets need a version ID to delete.
All versions of plan.pdf are deleted, and the delete can't be undone without a backup.
plan.pdf
S3 adds a delete marker; GET now returns 404, but every version is still stored.
GET
Only the newest version is deleted, and the previous version becomes the current one.