> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Removing a Wallet Account

You can remove a wallet account from the list of wallet accounts by calling the `removeWalletAccount` function.

If the wallet account is verified, it will be disassociated from the Dynamic user.

If the wallet account is not verified, it will be removed from the list of wallet accounts for the current session.

## Usage

<Tabs>
  <Tab title="JavaScript">
    ```javascript theme={"system"}
    import { removeWalletAccount } from '@dynamic-labs-sdk/client';

    await removeWalletAccount({ walletAccount });
    ```
  </Tab>

  <Tab title="React">
    ```tsx theme={"system"}
    import { type WalletAccount } from '@dynamic-labs-sdk/client';
    import { useRemoveWalletAccount } from '@dynamic-labs-sdk/react-hooks';

    function RemoveWalletButton({ walletAccount }: { walletAccount: WalletAccount }) {
      const { mutate: removeWallet, isPending } = useRemoveWalletAccount();

      return (
        <button onClick={() => removeWallet({ walletAccount })} disabled={isPending}>
          {isPending ? 'Removing…' : 'Remove wallet'}
        </button>
      );
    }
    ```
  </Tab>
</Tabs>

## Related functions

* [Getting the Wallet Account Given an Address and Chain](/javascript/reference/wallets/get-wallet-account-from-address)
* [Getting Wallet Accounts](/javascript/reference/wallets/get-wallet-accounts)
* [Connecting and Verifying a Wallet](/javascript/reference/wallets/connect-and-verify-wallet)
