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

Expire all transaction (and their dependencies) in the mempool older than time&period; Return the number of removed transactions&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d31e8), requires&lowbar;capability(0x7f9501b125c8), requires&lowbar;capability(0x7f950ec787b8), requires&lowbar;capability(0x7f9525ea8508), requires&lowbar;capability(0x7f9515097c48), requires&lowbar;capability(0x7f950826bee8), requires&lowbar;capability(0x7f94f856f5f8), requires&lowbar;capability(0x7f9513c597e8)&rsqb;&rsqb;
int
Expire(std::chrono::seconds time);
----

== Return Value

The number of removed transactions&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *time*
| Transactions that entered the mempool before this time are expired&period;
|===


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