How to delete file from S3 using Spring cloud AWS?
问题 I could not find any API or documentation in Spring AWS Cloud to delete an object from S3 bucket. Can someone please let me know how to do it? The documentation just talks about reading the content using ResourceLoader . Only option right now I see is to explicitly inject AmazonS3 and call deleteObject . 回答1: Spring's Resource API does not support the full lifecycle of operations. The two main interfaces are Resource and WritableResource . There is no API for deletion. As an alternative you