Skip to main content
NetApp Knowledge Base

Is there a way to clear out a bucket when versioning is enabled?

Views:
456
Visibility:
Public
Votes:
6
Category:
storagegrid-webscale
Specialty:
sgrid
Last Updated:

Applies to

NetApp StorageGRID

Answer

Yes a bucket with versioning can be cleared out using the original or any other third party s3 client.
However since NetApp is not the owner of this data NetApp Support cannot directly assist in the deletion only provide examples and options:
  1. S3 browser is a gui client that can be used when clearing out small buckets.
  2. Aws cli or S3cmd are S3 clients that can be used to make a script to clear out the bucket:
    1. list all version ID's
    2. Delete all old versions using the listed ID's
    3. Cleanup any remaining delete markers.
  3. Boto3 is the AWS S3 sdk for python which can be used to make a script to clear out the bucket::
    1. list all version ID's
    2. Delete all old versions using the listed ID's
    3. Cleanup any remaining delete markers.

If any additional assistance is needed contact your account manager to engage professional services to assist you in reclaiming / clearing out buckets you cannot empty.

Additional Information

additionalInformation_text

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.