diff --git a/cmd/bucket-object-lock.go b/cmd/bucket-object-lock.go index c5ea11989..07c96fef4 100644 --- a/cmd/bucket-object-lock.go +++ b/cmd/bucket-object-lock.go @@ -97,6 +97,9 @@ func enforceRetentionBypassForDelete(ctx context.Context, r *http.Request, bucke return ErrNone } } + if isErrObjectNotFound(gerr) || isErrVersionNotFound(gerr) { + return ErrNone + } return toAPIErrorCode(ctx, gerr) }