[#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(0x7f2e1b5a3118), requires&lowbar;capability(0x7f2e2721c128), requires&lowbar;capability(0x7f2e421cd838), requires&lowbar;capability(0x7f2e2880c7f8), requires&lowbar;capability(0x7f2e3212fb88), requires&lowbar;capability(0x7f2e347f8218), requires&lowbar;capability(0x7f2e2b05c688), requires&lowbar;capability(0x7f2e2bee3d28)&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]#
