---
title: "clearCredential(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/clearcredential(with:completion:)"
---

# clearCredential(with:completion:)

## Declaration

```swift
func clearCredential(with params: MTRDoorLockClusterClearCredentialParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func clearCredential(with params: MTRDoorLockClusterClearCredentialParams) async throws
```
