[#TxGraph-Trim]
= xref:TxGraph.adoc[TxGraph]::Trim
:relfileprefix: ../
:mrdocs:

Remove transactions (including their own descendants) according to a fast but best&hyphen;effort strategy such that the TxGraph&apos;s cluster and size limits are respected&period; Applies to staging if it exists, and to main otherwise&period; Returns the list of all removed transactions in unspecified order&period; This has no effect unless the relevant graph is oversized&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::vector&lt;Ref*&gt;
Trim() noexcept = 0;
----

== Return Value

The transactions removed to satisfy the limits, in unspecified order&period;


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