---
title: "removeSubgroup(_:from:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cnsaverequest/removesubgroup(_:from:)"
---

# removeSubgroup(_:from:)

Remove a subgroup from the specified parent group.

## Declaration

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

## Parameters

- `subgroup`: The subgroup to remove.
- `group`: The parent group containing subgroup.

## Discussion

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.

## See Also

### Adding and removing subgroups

- [addSubgroup(_:to:)](contacts/cnsaverequest/addsubgroup(_:to:).md)
