Is there a way to clear out a bucket when versioning is enabled?
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:
- S3 browser is a gui client that can be used when clearing out small buckets.
- Aws cli or S3cmd are S3 clients that can be used to make a script to clear out the bucket:
- list all version ID's
- Delete all old versions using the listed ID's
- Cleanup any remaining delete markers.
- Boto3 is the AWS S3 sdk for python which can be used to make a script to clear out the bucket::
- list all version ID's
- Delete all old versions using the listed ID's
- 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