---
title: "visitRemoveSubgroup(_:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cnchangehistoryeventvisitor/visitremovesubgroup(_:)"
---

# visitRemoveSubgroup(_:)

Tells the delegate that the user removed a subgroup from a group.

## Declaration

```swift
optional func visitRemoveSubgroup(_ event: CNChangeHistoryRemoveSubgroupFromGroupEvent)
```

## Parameters

- `event`: The event object that represents a user removing a subgroup from a group.

## Discussion

Discussion Inspect the group and subgroup in the event that the system provides and update your app’s cached data accordingly.

## See Also

### Updating subgroups

- [visitAddSubgroup(_:)](contacts/cnchangehistoryeventvisitor/visitaddsubgroup(_:).md)
