<p>Try the <a href="https://bitcoin.org/en/developer-reference#removeprunedfunds" rel="noreferrer"><code>removeprunedfunds</code></a> RPC command. It</p>

<blockquote>
  <p>deletes the specified transaction from the wallet. … This will effect wallet balances.</p>
</blockquote>

CC BY-SA 4.0
2018-06-14T09:43:54.170Z
don't know why you're voted down.. that did it for me
tobi
CC BY-SA 4.0
2021-10-04T17:22:05.840Z
This is correct, but it should be noted that `removeprunedfunds` will remove the tx from just the local node's mempool and not necessarily from the mempool of other nodes that the tx may have propagated to.
A-Diddy
CC BY-SA 3.0
2017-05-30T20:35:44.937Z
2017-05-30T20:40:50.007Z
2017-05-30T20:40:50.007Z
Geremia
<p>I haven't found a good way to clear just a single transaction from the mempool, but you can shutdown bitcoind and then delete ~/.bitcoin/mempool.dat and clear the entire mempool, and then restart bitcoind</p>

CC BY-SA 3.0
2017-03-28T22:36:14.543Z
2017-03-28T22:36:14.543Z
Earlz
<p>You can use <a href="https://bitcoincore.org/en/doc/27.0.0/rpc/mining/prioritisetransaction/" rel="nofollow noreferrer"><code>prioritisetransaction</code></a> to reduce the perceived effective feerate of the original transaction in your own mempool. If you lower the feerate enough, and your mempool is full, it will be removed the next time transactions are evicted.</p>
<p>If the original transaction signaled RBF, or your node uses the <code>mempoolfullrbf</code> startup option (enabled by default starting with Bitcoin Core 28.0), deprioritizing the original transaction will also make it easier to replace it, since the modified feerate is used as basis to evaluate a replacement. Note that this only affects your own local mempool, and other nodes that still have the original may not accept the replacement unless it fulfills those nodes’ criteria for replacement.</p>

CC BY-SA 4.0
2024-09-12T18:34:05.450Z
2024-09-12T18:34:05.450Z
Murch
<p>There is no RPC command available to remove objects from the mempool. </p>

CC BY-SA 4.0
2018-06-14T10:59:20.010Z
outdated reply, see @Geremia's answer
tobi
CC BY-SA 4.0
2020-09-17T16:18:56.547Z
Not really. Removal from wallet and removal from mempool are two distinct operations.
Jan Matejka
CC BY-SA 3.0
2014-05-27T00:11:21.130Z
2014-05-27T00:11:21.130Z
user13413
<p>Using Bitcoind and Json-RPC, how can I remove an unconfirmed transaction from the memory pool?</p>
<p>The scenario being that I want to remove the unconfirmed transaction because it's not getting confirmed, and it's preventing me from sending new transactions spending the same inputs because Bitcoind considers it a double spend.</p>

<bitcoind><json-rpc><unconfirmed-transactions><mempool><revert-transaction>
How can an unconfirmed transaction be removed from the memory pool?
Flavien
# How can an unconfirmed transaction be removed from the memory pool?

(Asked by: username_0 on 2014-05-26)

Using Bitcoind and Json-RPC, how can I remove an unconfirmed transaction from the memory pool?

The scenario being that I want to remove the unconfirmed transaction because it's not getting confirmed, and it's preventing me from sending new transactions spending the same inputs because Bitcoind considers it a double spend.

**Tags:** bitcoind, json-rpc, unconfirmed-transactions, mempool, revert-transaction


---

## 4 answers

### Answer by username_1 on 2017-05-30. Score: 7

Try the [`removeprunedfunds`](https://bitcoin.org/en/developer-reference#removeprunedfunds) RPC command. It

> deletes the specified transaction from the wallet. … This will effect wallet balances.

> **Comments:**
> **username_2**: don't know why you're voted down.. that did it for me  
> **username_3**: This is correct, but it should be noted that `removeprunedfunds` will remove the tx from just the local node's mempool and not necessarily from the mempool of other nodes that the tx may have propagated to.  

---

### Answer by username_4 on 2017-03-28. Score: 1

I haven't found a good way to clear just a single transaction from the mempool, but you can shutdown bitcoind and then delete ~/.bitcoin/mempool.dat and clear the entire mempool, and then restart bitcoind


---

### Answer by username_5 on 2024-09-12. Score: 1

You can use [`prioritisetransaction`](https://bitcoincore.org/en/doc/27.0.0/rpc/mining/prioritisetransaction/) to reduce the perceived effective feerate of the original transaction in your own mempool. If you lower the feerate enough, and your mempool is full, it will be removed the next time transactions are evicted.

If the original transaction signaled RBF, or your node uses the `mempoolfullrbf` startup option (enabled by default starting with Bitcoin Core 28.0), deprioritizing the original transaction will also make it easier to replace it, since the modified feerate is used as basis to evaluate a replacement. Note that this only affects your own local mempool, and other nodes that still have the original may not accept the replacement unless it fulfills those nodes’ criteria for replacement.


---

### Answer by username_6 on 2014-05-27. Score: 0

There is no RPC command available to remove objects from the mempool.

> **Comments:**
> **username_2**: outdated reply, see @username_1's answer  
> **username_7**: Not really. Removal from wallet and removal from mempool are two distinct operations.  

---

