#Delete objects from ONTAP S3 bucket

1 messages · Page 1 of 1 (latest)

paper owl
#

Hi, I want to delete an ONTAP S3 bucket but it's giving me an error that there are still objects in the bucket, when I look into the bucket from S3 browser, I don't see anything, but ONTAP cli command shows that the bucket does contain objects.

How can I still go ahead and delete ? Needed help with commands to do this via AWS CLI or API (how to connect to bucket, list objects and delete them)

minor sage
#

Using AWS CLI:

  1. aws configure - input Access and Secret key
  2. List objects: aws --endpoint-url https://svm-ip/ --no-verify-ssl s3 ls s3://bucketname
  3. Remove all objects: aws --endpoint-url https://svm-ip/ --no-verify-ssl s3 rm s3://bucketname/ --recursive
paper owl
#

Hi Matalve, I actually found out that these are actually not objects, but previously deleted versions and delete markers, wondering if we can delete those as well via some command ? Otherwise I will have to delete them one by one from S3 browser (free version).

minor sage
#

I believe the AWS CLI kan be used to view and delete them as well, but I don't have the commands for that.

paper owl
#

you are awesome, thanks for the help!