---
title: "removeSubgroup(_:)"
framework: addressbook
role: symbol
role_heading: Instance Method
path: "addressbook/abgroup/removesubgroup(_:)"
---

# removeSubgroup(_:)

Removes a subgroup from a group.

## Declaration

```swift
func removeSubgroup(_ group: ABGroup!) -> Bool
```

## Parameters

- `group`: The subgroup to be removed.

## Return Value

Return Value true if successful; otherwise, false.

## Discussion

Discussion If the group argument is not a subgroup, this method does nothing and returns false. If group is nil, this method raises an exception.

## See Also

### Managing subgroups

- [addSubgroup(_:)](addressbook/abgroup/addsubgroup(_:).md)
- [parentGroups()](addressbook/abgroup/parentgroups().md)
- [subgroups()](addressbook/abgroup/subgroups().md)
