Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Deleting objects from versioning-suspended buckets

Focus mode
Deleting objects from versioning-suspended buckets - Amazon Simple Storage Service

You can delete objects from versioning-suspended buckets to remove an object with a null version ID.

If versioning is suspended for a bucket, a DELETE request:

  • Can only remove an object whose version ID is null.

  • Doesn't remove anything if there isn't a null version of the object in the bucket.

  • Inserts a delete marker into the bucket.

If bucket versioning is suspended, the operation removes the object that has a null versionId. If a version ID exists, Amazon S3 inserts a delete marker that becomes the current version of the object. The following figure shows how a simple DELETE removes a null version and Amazon S3 inserts a delete marker in its place instead with a null version ID.

Illustration that shows a simple delete to remove an object with a NULL version ID.

To permanently delete an object that has a versionId, you must include the object’s versionId in the request. Since a delete marker doesn't contain any content, you'll lose the content for the null version when a delete marker replaces it.

The following figure shows a bucket that doesn't have a null version. In this case, the DELETE removes nothing. Instead, Amazon S3 just inserts a delete marker.

Illustration that shows a delete marker insertion.

Even in a versioning-suspended bucket, the bucket owner can permanently delete a specified version by including the version ID in the DELETE request. The following figure shows that deleting a specified object version permanently removes that version of the object. Only the bucket owner can delete a specified object version.

Illustration that shows a permanent object deletion using a specified version ID.
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.