Remove a wallet from the wallet context and optionally update its load‐on‐startup setting.

Synopsis

Declared in <wallet/wallet.h>

bool
RemoveWallet(
    WalletContext& context,
    std::shared_ptr<CWallet> const& wallet,
    std::optional<bool> load_on_start,
    std::vector<bilingual_str>& warnings);

Return Value

true if the wallet was removed.

Parameters

Name

Description

context

The wallet context to remove from.

wallet

The wallet to remove.

load_on_start

Optionally set whether the wallet loads on startup.

warnings

Warnings produced while removing the wallet.

Created with MrDocs