[#CTxMemPool-removeRecursive-03]
= xref:CTxMemPool.adoc[CTxMemPool]::removeRecursive
:relfileprefix: ../
:mrdocs:

Remove a transaction from the mempool along with any descendants&period; If the transaction is not already in the mempool, find any descendants and remove them&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1b5a1cb8), requires&lowbar;capability(0x7f2e2721acc8), requires&lowbar;capability(0x7f2e421cc3d8), requires&lowbar;capability(0x7f2e2880b398), requires&lowbar;capability(0x7f2e3212e728), requires&lowbar;capability(0x7f2e347f6db8), requires&lowbar;capability(0x7f2e2b05b228), requires&lowbar;capability(0x7f2e2bee28c8)&rsqb;&rsqb;
void
removeRecursive(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:MemPoolRemovalReason.adoc[MemPoolRemovalReason] reason);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction to remove along with its descendants&period;
| *reason*
| The reason the transaction is being removed&period;
|===


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