• Removes encryption keys and storage directories associated with the wallet

    When destroying the current wallet instance, it will also be closed.

    Parameters

    • Optional instanceIdOrOptions: string | DestroyOptions

    Returns Promise<Result<void, WalletNotFoundError>>

    A Result containing void on ok and a WalletNotFoundError on error

    Remarks

    This is a destructive operation that cannot be undone. The wallet will have to be re created from scratch if destroyed.

    The same list of extensions used when initialising the wallet instance must be provided so that resources created and managed by extension modules can also be removed properly.

    You must also close the wallet instance that is currently initialised before calling this function, otherwise an exception will be thrown.

Generated using TypeDoc