<BlockSwitcher>
<Block name="Java">

```java
Amplify.Auth.signOut(
    AuthSignOutOptions.builder().globalSignOut(true).build(),
    () -> Log.i("AuthQuickstart", "Signed out globally"),
    error -> Log.e("AuthQuickstart", error.toString())
);
```

</Block>
<Block name="Kotlin - Callbacks">

```kotlin
val options = AuthSignOutOptions.builder()
    .globalSignOut(true)
    .build()
Amplify.Auth.signOut(options,
    { Log.i("AuthQuickstart", "Signed out globally") },
    { Log.e("AuthQuickstart", "Sign out failed", it) }
)
```

</Block>
<Block name="Kotlin - Coroutines">

```kotlin
val options = AuthSignOutOptions.builder()
    .globalSignOut(true)
    .build()
try {
    Amplify.Auth.signOut(options)
    Log.i("AuthQuickstart", "Signed out globally") 
} catch (error: AuthException) {
    Log.e("AuthQuickstart", "Sign out failed", error)
)
```

</Block>
<Block name="RxJava">

```java
RxAmplify.Auth.signOut(AuthSignOutOptions.builder().globalSignOut(true).build())
    .subscribe(
        () -> Log.i("AuthQuickstart", "Signed out globally"),
        error -> Log.e("AuthQuickstart", error.toString())
    );
```

</Block>
</BlockSwitcher> 
