# disconnect | @account-kit/core

> Overview of the disconnect function from @account-kit/core

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function disconnect(config): Promise<void>;
```

Defined in: [account-kit/core/src/actions/disconnect.ts:25](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/core/src/actions/disconnect.ts#L25)

Disconnects the current signer, accounts, and clears the store.

## Example

```ts
import { disconnect, createConfig } from "@account-kit/core";
import { sepolia } from "@account-kit/infra";

const config = createConfig({
  chain: sepolia,
  apiKey: "your-api-key",
});

await disconnect(config);
```

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `config`
      </td>

      <td>
        `AlchemyAccountsConfig`
      </td>

      <td>
        The configuration containing the store to be cleared
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<`void`>