Amazon S3 – Delete File SpringBoot RestAPI
amazon
8
s3
10
springboot
164
restapi
58
Male avatar

loveprogramming viết ngày 18/05/2021

https://ozenero.com/amazon-s3-delete-file-springboot-restapi

Amazon S3 – Delete File SpringBoot RestAPI

In the tutorial, we build a SpringBoot RestAPIs to Delete files in a Amazon S3 bucket.

Previous post:
Amazon S3 – SpringBoot RestAPIs Upload/Download File/Image to S3

Technologies

  • Java 8
  • Maven 3.6.1
  • Spring Tool Suite: 3.9.4.RELEASE
  • Spring Boot: 2.0.4.RELEASE
  • Amazon S3

AmazonS3 Delete File API

We use delete API in com.amazonaws.services.s3.AmazonS3.java ->


public void deleteObject(DeleteObjectRequest deleteObjectRequest)
    throws SdkClientException, AmazonServiceException;
  • @param deleteObjectRequest: The request object containing all options for deleting an Amazon S3 object.
  • @throws SdkClientException: If any errors are encountered in the client while making the request or handling the response.
  • @throws AmazonServiceException: If any errors occurred in Amazon S3 while processing the request.

Practice

We re-use all the sourcecode of the previous tutorial:

-> Amazon S3 – SpringBoot RestAPIs Upload/Download File/Image to S3

spring-boot-restapi-delete-files-amazon-s3 + project-structure

What we build more? ->

More at:

https://ozenero.com/amazon-s3-delete-file-springboot-restapi

Amazon S3 – Delete File SpringBoot RestAPI

Bình luận


White
{{ comment.user.name }}
Bỏ hay Hay
{{comment.like_count}}
Male avatar
{{ comment_error }}
Hủy
   

Hiển thị thử

Chỉnh sửa

Male avatar

loveprogramming

545 bài viết.
98 người follow
Kipalog
{{userFollowed ? 'Following' : 'Follow'}}
Cùng một tác giả
Male avatar
1 0
Tutorial Link: (Link) (Ảnh) Django is a Pythonbased free and opensource web framework that follows the modeltemplateview architectural pattern. A...
loveprogramming viết 7 tháng trước
1 0
Male avatar
1 0
https://loizenai.com/angular11nodejspostgresqlcrudexample/ Angular 11 Node.js PostgreSQL Crud Example (Ảnh) Tutorial: “Angular 11 Node.js Postg...
loveprogramming viết 6 tháng trước
1 0
Male avatar
1 0
Angular Spring Boot jwt Authentication Example Github https://loizenai.com/angularspringbootjwt/ (Ảnh) Tutorial: ” Angular Spring Boot jwt Authe...
loveprogramming viết 6 tháng trước
1 0
Bài viết liên quan
Male avatar
0 0
https://grokonez.com/aws/amazons3/nodejsrestapisdownloadfilefromamazons3usingexpressawssdk Node.js RestAPIs Download File from Amazon S3 | using ...
loveprogramming viết 2 tháng trước
0 0
{{like_count}}

kipalog

{{ comment_count }}

bình luận

{{liked ? "Đã kipalog" : "Kipalog"}}


Male avatar
{{userFollowed ? 'Following' : 'Follow'}}
545 bài viết.
98 người follow

 Đầu mục bài viết

Vẫn còn nữa! x

Kipalog vẫn còn rất nhiều bài viết hay và chủ đề thú vị chờ bạn khám phá!