---
title: "logout(with:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteraccountlogin/logout(with:completionhandler:)"
---

# logout(with:completionHandler:)

## Declaration

```swift
func logout(with params: MTRAccountLoginClusterLogoutParams?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func logout(with params: MTRAccountLoginClusterLogoutParams?) async throws
```
