diff --git a/cmd/bucket-encryption-handlers.go b/cmd/bucket-encryption-handlers.go index fa8df219c..6d084b5b1 100644 --- a/cmd/bucket-encryption-handlers.go +++ b/cmd/bucket-encryption-handlers.go @@ -206,6 +206,15 @@ func (api objectAPIHandlers) DeleteBucketEncryptionHandler(w http.ResponseWriter writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } - + // Call site replication hook. + // + if err = globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{ + Type: madmin.SRBucketMetaTypeSSEConfig, + Bucket: bucket, + SSEConfig: nil, + }); err != nil { + writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) + return + } writeSuccessNoContent(w) }