---
title: "logout(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteraccountlogin/logout(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# logout(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func logout(with params: MTRAccountLoginClusterLogoutParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func logout(with params: MTRAccountLoginClusterLogoutParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
