diff --git a/tier.go b/tier.go index c5d3a6b..432af2d 100644 --- a/tier.go +++ b/tier.go @@ -155,12 +155,17 @@ func (adm *AdminClient) EditTier(ctx context.Context, tierName string, creds Tie } // RemoveTier removes an empty tier identified by tierName -func (adm *AdminClient) RemoveTier(ctx context.Context, tierName string) error { +func (adm *AdminClient) RemoveTier(ctx context.Context, tierName string, force bool) error { if tierName == "" { return ErrTierNameEmpty } + + queryVals := url.Values{} + queryVals.Set("force", strconv.FormatBool(force)) + reqData := requestData{ - relPath: path.Join(adminAPIPrefix, tierAPI, tierName), + relPath: path.Join(adminAPIPrefix, tierAPI, tierName), + queryValues: queryVals, } // Execute DELETE on /minio/admin/v3/tier/tierName to remove an empty tier.