---
title: "clearCredential(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterdoorlock/clearcredential(with:expectedvalues:expectedvalueinterval:completion:)"
---

# clearCredential(with:expectedValues:expectedValueInterval:completion:)

## Declaration

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

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