Löschen implementiert
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m16s
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m16s
This commit is contained in:
@@ -74,4 +74,15 @@ public sealed class S3StorageService(IAmazonS3 s3) : IStorageService
|
||||
return (resp.ResponseStream, contentType, len);
|
||||
}
|
||||
|
||||
|
||||
public async Task DeleteObjectAsync(string bucket, string key)
|
||||
{
|
||||
// S3-Delete ist idempotent: 204 auch wenn das Objekt nicht existiert.
|
||||
await _s3.DeleteObjectAsync(new Amazon.S3.Model.DeleteObjectRequest
|
||||
{
|
||||
BucketName = bucket,
|
||||
Key = key
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user