[#PrivateBroadcast-Remove]
= xref:PrivateBroadcast.adoc[PrivateBroadcast]::Remove
:relfileprefix: ../
:mrdocs:

Forget a transaction&period;

== Synopsis

Declared in `&lt;private&lowbar;broadcast&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950ef0caa8), requires&lowbar;capability(0x7f950e3e79c8), requires&lowbar;capability(0x7f9502a9e3b8)&rsqb;&rsqb;
std::optional&lt;size&lowbar;t&gt;
Remove(xref:CTransactionRef.adoc[CTransactionRef] const& tx);
----

== Return Value

The confirmed&hyphen;send count if the transaction was removed, otherwise nullopt&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx* [in]
| Transaction to forget&period;
|===


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