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

# clearUser(with:completion:)

## Declaration

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

```swift
func clearUser(with params: MTRDoorLockClusterClearUserParams) async throws
```
