[#wallet-RemoveWallet-01]
= xref:wallet.adoc[wallet]::RemoveWallet
:relfileprefix: ../
:mrdocs:

Remove a wallet from the wallet context and optionally update its load&hyphen;on&hyphen;startup setting&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
RemoveWallet(
    xref:wallet/WalletContext.adoc[WalletContext]& context,
    std::shared&lowbar;ptr&lt;CWallet&gt; const& wallet,
    std::optional&lt;bool&gt; load&lowbar;on&lowbar;start,
    std::vector&lt;bilingual&lowbar;str&gt;& warnings);
----

== Return Value

true if the wallet was removed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The wallet context to remove from&period;
| *wallet*
| The wallet to remove&period;
| *load&lowbar;on&lowbar;start*
| Optionally set whether the wallet loads on startup&period;
| *warnings*
| Warnings produced while removing the wallet&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
