[#node-TxOrphanage-EraseTx]
= xref:node.adoc[node]::xref:node/TxOrphanage.adoc[TxOrphanage]::EraseTx
:relfileprefix: ../../
:mrdocs:

Erase an orphan by wtxid, including all announcements if there are multiple&period; Returns true if an orphan was erased, false if no tx with this wtxid exists&period;

== Synopsis

Declared in `&lt;node&sol;txorphanage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
EraseTx(xref:Wtxid.adoc[Wtxid] const& wtxid) = 0;
----

== Return Value

True if an orphan was erased, false if none existed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtxid*
| Witness txid of the orphan to erase&period;
|===


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