Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Deleting a file in an  S3 bucket

Finally, you can delete a file in a bucket by simply invoking the DeleteObject() function, as follows:

IAmazonS3 s3Client = new AmazonS3Client();DeleteObjectRequest request = new DeleteObjectRequest(){    BucketName = "packt-pub",    Key = "myfile"};s3Client.DeleteObject(request);

By now, you must have an idea of using the AWS SDK for accessing the S3 services on the Windows platform. Let's see how we can do the same operations using the Python programming language on Unix platforms. Note that the Python examples can also be performed on a Windows system.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content