How to check if files have been deleted from an S3 bucket
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
