Removetransaction

removetransaction "txid"

Remove a transaction and all its descendants from the mempool. If the transaction is final it is removed anyway. No attempt is made to poll for this transaction and this could cause the node to disagree with the network.

Arguments:
1. txid    (string, required) The id of the transaction to be removed.

Result:
[           (json array) The list of the removed txids if any (it can include descendants of the target txid).
  "hex",    (string) The removed transaction id.
  ...
]

Examples:
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "removetransaction", "params": [<txid>]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/