---
title: "delete(_:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cnsaverequest/delete(_:)-29lsm"
---

# delete(_:)

Deletes a group from the contact store.

## Declaration

```swift
func delete(_ group: CNMutableGroup)
```

## Parameters

- `group`: The group to delete.

## Discussion

Discussion This method overrides any previously made add request on the group. The group to be deleted must already exist in the contact store. If it does not, the delete request fails, the CNErrorCodeRecordDoesNotExist error is thrown, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain that object.

## See Also

### Saving group changes

- [add(_:toContainerWithIdentifier:)](contacts/cnsaverequest/add(_:tocontainerwithidentifier:)-4ikaa.md)
- [update(_:)](contacts/cnsaverequest/update(_:)-8h6f6.md)
- [addMember(_:to:)](contacts/cnsaverequest/addmember(_:to:).md)
- [removeMember(_:from:)](contacts/cnsaverequest/removemember(_:from:).md)
