code: func (gc *GarbageCollector) deleteOwnerRefJSONMergePatch(item *node, ownerUIDs ...types.UID) ([]byte, error) {
  	accessor, err := gc.getMetadata(item.identity.APIVersion, item.identity.Kind, item.identity.Namespace, item.identity.Name)
  	if err != nil {
  		return nil, err
  	}
  	expectedObjectMeta := ObjectMetaForPatch{}
  	expectedObjectMeta.ResourceVersion = accessor.GetResourceVersion()
  	refs := accessor.GetOwnerReferences()
  	for _, ref := range refs {
  		var skip bool
  		for _, ownerUID := range ownerUIDs {
  			if ref.UID == ownerUID {
  				skip = true
  				break
  			}
  		}
  		if !skip {
  			expectedObjectMeta.OwnerReferences = append(expectedObjectMeta.OwnerReferences, ref)
  		}
  	}
  	return json.Marshal(objectForPatch{expectedObjectMeta})
  }
docs: // Returns JSON merge patch that removes the ownerReferences matching ownerUIDs.