Skip to main content
NetApp Knowledge Base

How to check if files have been deleted from an S3 bucket

Views:
56
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • S3

Answer

  • Use S3 Client: Utilize an S3 client or command-line tool (like aws s3 ls) to list the contents of the bucket
    • :: aws s3 ls --endpoint http://<ontap-s3-lif-ip>/s3://<ontap-s3-bucket-name> --recursive
  • Check for Object Versions: If versioning is enabled, ensure that the specific object versions are also checked
  • As they may still exist even if the latest version appears deleted
  • To check the object versioning state of a bucket, follow these steps
  • Access the Dashboard: Select View buckets from the dashboard or navigate to STORAGE (S3) > Buckets
  • Select the Bucket: Click on the name of the bucket you want to check from the table
  • View Bucket Details: The bucket details page will appear
  • Check Versioning State
  • Go to the Bucket options tab
  • Select the Object versioning accordion to view the current versioning state

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.