Report this

What is the reason for this report?

How to delete multiple key from object storage?

Posted on October 29, 2020

I am trying to delete multiple object once by using delete_objects. But i am getting an error. I didn’t found any solution regarding to this issue.

client = boto3.client("s3", **cfg)
    
        response = client.delete_objects(
                    Bucket=BUCKET,
                    Delete={
                        'Objects': [
                            {
                                'Key': 'asdasd1.png',
                            },
                            {
                                'Key': 'asdasd1.png',
                            }
                        ]
                    },
                    RequestPayer='requester'
                )

I get an error like this:

An error occurred (NotImplemented) when calling the DeleteObjects operation: Unknown
INFO:     127.0.0.1:46958 - "DELETE /image/ HTTP/1.1" 500 Internal Server Error


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.