<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNSaveRequest/removeSubgroup(_:from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNSaveRequest(im)removeSubgroup:fromGroup:"
  },
  "title" : "removeSubgroup(_:from:)"
}
-->

# removeSubgroup(_:from:)

Remove a subgroup from the specified parent group.

```
func removeSubgroup(_ subgroup: CNGroup, from group: CNGroup)
```

## Parameters

`subgroup`

The subgroup to remove.

`group`

The parent group containing `subgroup`.

## Discussion

If you previously tried to add `subgroup` to `group` in the same save request, calling this method undoes that addition. The last change you make is the one that takes effect.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)