Amazon S3 Aws - How to delete a file from a bucket

This code shows how to delete an object from an existing bucket, using boto python API.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
# This call deletes the file pippo.txt bucket.delete_key('pippo.txt')

Other Steps and Solutions

If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus