From c534162d6c7f7044c6bccf27e66853b2b570c0c2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 16 Feb 2024 21:59:02 -0500 Subject: [PATCH] feat: add DeleteObject --- renter/renter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renter/renter.go b/renter/renter.go index 1d11425..a583c79 100644 --- a/renter/renter.go +++ b/renter/renter.go @@ -230,3 +230,7 @@ func (r *RenterDefault) UploadObjectMultipart(ctx context.Context, params *Multi return nil } + +func (r *RenterDefault) DeleteObject(ctx context.Context, bucket string, fileName string) error { + return r.workerClient.DeleteObject(ctx, bucket, fileName, api.DeleteObjectOptions{}) +}