---
title: "keySetRemove(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustergroupkeymanagement/keysetremove(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# keySetRemove(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func keySetRemove(with params: MTRGroupKeyManagementClusterKeySetRemoveParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func keySetRemove(with params: MTRGroupKeyManagementClusterKeySetRemoveParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
