<p>Has the transaction already been mined into a block? I'm assuming not since it's in your raw mem pool. Why wasn't it mind in that case? Did it not have any fee?</p>

<p>I would try sending the coins to yourself with a much larger fee than the original transaction. Like Steven Roose said above, once transactions have been sent out to the network, they can't really be undone. <strong>Even if you delete it from your raw mem pool, it's still in everyone elses raw mem pool just waiting to be confirmed.</strong> </p>

<p>To make your own custom transaction that spends the UTXOs you want to spend, use the rpc calls:</p>

<pre><code>listtransactions
listunspent
createrawtransaction
signrawtransaction
</code></pre>

<p>The default behaviour is for clients to accept whatever transactions spend an UTXO first. So most standard clients will not accept secondary spends of specific UTXOs. Mining pools may be a little bit more persuadable.</p>

<p>Not sure how viable this is, but I just found this: <a href="http://www.bitundo.com/" rel="nofollow">http://www.bitundo.com/</a>. Read up on it before giving any money to a service like this. It also only works for transactions that haven't been confirmed into blocks at all yet.</p>

<p>I would also read this article <a href="http://bitcoinmagazine.com/2960/instant-transaction-fraud-an-explanation/" rel="nofollow">http://bitcoinmagazine.com/2960/instant-transaction-fraud-an-explanation/</a>. It has some very interesting stuff relevant to this question.</p>

CC BY-SA 3.0
2014-10-26T11:24:20.960Z
2014-10-26T11:24:20.960Z
morsecoder
<p>I have some transactions pending in the memory pool, how do I empty the memory pool without restarting bitcoind ?
I would like the transactions to be cancelled also.</p>

CC BY-SA 3.0
2013-12-26T12:50:39.820Z
I think with bitcoind this is not possible. Are you referring to transactions to/from your wallet? Or do you mean any transaction?
TripleSpeeder
CC BY-SA 3.0
2014-01-02T11:23:42.613Z
Transactions cannot be cancelled. The best you can try is to double-spend them and hope that miners will ignore both transactions because you are double-spending. (I don't know what the policies for double-spending are at the largest miners.)
Steven Roose
CC BY-SA 3.0
2014-10-24T12:46:34.770Z
I have rolled back the question at @drcelus' request, who felt that the edit fundamentally changed the question. drcelus: You could have reverted it yourself by going to the edit-history and clicking "rollback" on your version's header.
Murch
CC BY-SA 3.0
2014-10-24T12:47:43.853Z
@StevenRoose Your comment looks much like a decent start for an answer.
Murch
<bitcoind>
How do I empty the memory pool?
drcelus
# How do I empty the memory pool?

(Asked by: username_0 on 2013-12-20)

I have some transactions pending in the memory pool, how do I empty the memory pool without restarting bitcoind ?
I would like the transactions to be cancelled also.

**Tags:** bitcoind

> **Comments:**
> **username_1**: I think with bitcoind this is not possible. Are you referring to transactions to/from your wallet? Or do you mean any transaction?  
> **username_2**: Transactions cannot be cancelled. The best you can try is to double-spend them and hope that miners will ignore both transactions because you are double-spending. (I don't know what the policies for double-spending are at the largest miners.)  
> **username_3**: I have rolled back the question at @username_0' request, who felt that the edit fundamentally changed the question. username_0: You could have reverted it yourself by going to the edit-history and clicking "rollback" on your version's header.  
> **username_3**: @StevenRoose Your comment looks much like a decent start for an answer.  

---

## 1 answers

### Answer by username_4 on 2014-10-26. Score: 0 | Accepted answer

Has the transaction already been mined into a block? I'm assuming not since it's in your raw mem pool. Why wasn't it mind in that case? Did it not have any fee?
I would try sending the coins to yourself with a much larger fee than the original transaction. Like username_2 said above, once transactions have been sent out to the network, they can't really be undone. Even if you delete it from your raw mem pool, it's still in everyone elses raw mem pool just waiting to be confirmed. 
To make your own custom transaction that spends the UTXOs you want to spend, use the rpc calls:
listtransactions
listunspent
createrawtransaction
signrawtransaction

The default behaviour is for clients to accept whatever transactions spend an UTXO first. So most standard clients will not accept secondary spends of specific UTXOs. Mining pools may be a little bit more persuadable.
Not sure how viable this is, but I just found this: http://www.bitundo.com/. Read up on it before giving any money to a service like this. It also only works for transactions that haven't been confirmed into blocks at all yet.
I would also read this article http://bitcoinmagazine.com/2960/instant-transaction-fraud-an-explanation/. It has some very interesting stuff relevant to this question.


---

