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

# logout(completion:)

## Declaration

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

```swift
func logout() async throws
```
