0

Can anyone help with checking s3 object existence and s3 object deletion using python3? I found some methods to check object existence. But that was not a direct method.

Here is the link which contains the indirect solution

I am still unable to find a method to delete the s3 object.

Dinuka
  • 37
  • 1
  • 9
  • You use [`delete_object()`](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.delete_object) to delete objects and [`head_object()`](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.head_object) to check whether an object exists... so it isn't clear what you are asking, here. – Michael - sqlbot Feb 26 '20 at 03:14
  • See the Amazon S3 section of AWS SDK for Python: [S3 — Boto 3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html) – John Rotenstein Feb 26 '20 at 04:02

0 Answers0