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

# logout(with:completion:)

## Declaration

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

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