[#TxRequestTracker-ForgetTxHash]
= xref:TxRequestTracker.adoc[TxRequestTracker]::ForgetTxHash
:relfileprefix: ../
:mrdocs:

Deletes all announcements for a given txhash (both txid and wtxid ones)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ForgetTxHash(xref:uint256.adoc[uint256] const& txhash);
----

== Description

This should be called when a transaction is no longer needed&period; The caller should ensure that new announcements for the same txhash will not trigger new ReceivedInv calls, at least in the short term after this call&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txhash*
| Transaction hash whose announcements should be deleted&period;
|===


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