# Disconnect

{% hint style="info" %}
This function does not trigger any UI elements
{% endhint %}

## Description

Function that clears the user password saved in local storage. The user will be prompted to enter their password again the next time they try to interact with their wallet.&#x20;

This function should be called when the user logs out of their account.

## Details

### Signature

```csharp
Task Disconnect()
```

### Arguments

This function has no arguments

### Return Value

None

## Example

{% code lineNumbers="true" %}

```csharp
using System;
using Metafi.Unity;

public class LogoutButton : MonoBehaviour {
    public async void Logout(){
        await MetafiProvider.Instance.Disconnect();
        Debug.Log("Disconnect complete");
    }
}
```

{% endcode %}
