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
Submit an answer

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