[android-components](../../index.md) / [mozilla.components.service.fxa](../index.md) / [FirefoxAccount](index.md) / [disconnectAsync](./disconnect-async.md)

# disconnectAsync

`fun disconnectAsync(): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/FirefoxAccount.kt#L233)

Overrides [OAuthAccount.disconnectAsync](../../mozilla.components.concept.sync/-o-auth-account/disconnect-async.md)

Reset internal account state and destroy current device record.
Use this when device record is no longer relevant, e.g. while logging out. On success, other
devices will no longer see the current device in their device lists.

**Return**
A [Deferred](#) that will be resolved with a success flag once operation is complete.
Failure indicates that we may have failed to destroy current device record. Nothing to do for
the consumer; device record will be cleaned up eventually via TTL.

