<p>Abandoning a transaction does not delete it from the wallet. It only lets the wallet know that it can ignore the transaction when constructing new transactions. They remain in the wallet in the event that the transaction is rebroadcast (possibly by someone else) and therefore has the possibility of confirming. They are otherwise okay to leave in the wallet and they can be ignored.</p>
<p>Transactions can be forcibly deleted from the wallet file by using the <code>removeprunedfunds</code> RPC. However, be very careful with this as removing transactions that are still relevant can result in the wallet misbehaving, such as accidentally double spending already spent outputs, or showing and incorrect balance. Only do this if you are sure the transaction is irrelevant (i.e. all outputs already spent, transaction is conflicted, etc.). It is otherwise okay to leave irrelevant transactions in the wallet.</p>
<p>In your case, because the transactions are marked as abandoned, they are not entirely irrelevant. They can still be revived if someone were to broadcast them again. As such, I would advise leaving the transactions alone. You can remove them once they become conflicted. For that to happen, another transaction spending the same inputs needs to become confirmed.</p>

CC BY-SA 4.0
2024-10-29T18:26:40.400Z
2024-10-29T18:26:40.400Z
Ava Chow
<p>I'm trying to create a transaction using bitcoin-qt from Bitcoin Core but I have a bunch of abandoned transactions in my transactions history that appears in &quot;walletconflicts&quot; key in the output of <code>gettransaction</code> command. Additionally, I tried to remove the mempool file inside .bitcoin directory and restart bitcoin-qt but it didn't work as it seems to live in the wallet.dat file instead of the mempool file.</p>
<p>How could I remove those abandoned transactions so it doesn't appear as wallet conflicts?</p>

<bitcoin-core><unconfirmed-transactions>
How to remove abandoned transactions from the transactions history?
fmcrypto
# How to remove abandoned transactions from the transactions history?

(Asked by: username_0 on 2024-10-29)

I'm trying to create a transaction using bitcoin-qt from Bitcoin Core but I have a bunch of abandoned transactions in my transactions history that appears in "walletconflicts" key in the output of `gettransaction` command. Additionally, I tried to remove the mempool file inside .bitcoin directory and restart bitcoin-qt but it didn't work as it seems to live in the wallet.dat file instead of the mempool file.

How could I remove those abandoned transactions so it doesn't appear as wallet conflicts?

**Tags:** bitcoin-core, unconfirmed-transactions


---

## 1 answers

### Answer by username_1 on 2024-10-29. Score: 1 | Accepted answer

Abandoning a transaction does not delete it from the wallet. It only lets the wallet know that it can ignore the transaction when constructing new transactions. They remain in the wallet in the event that the transaction is rebroadcast (possibly by someone else) and therefore has the possibility of confirming. They are otherwise okay to leave in the wallet and they can be ignored.

Transactions can be forcibly deleted from the wallet file by using the `removeprunedfunds` RPC. However, be very careful with this as removing transactions that are still relevant can result in the wallet misbehaving, such as accidentally double spending already spent outputs, or showing and incorrect balance. Only do this if you are sure the transaction is irrelevant (i.e. all outputs already spent, transaction is conflicted, etc.). It is otherwise okay to leave irrelevant transactions in the wallet.

In your case, because the transactions are marked as abandoned, they are not entirely irrelevant. They can still be revived if someone were to broadcast them again. As such, I would advise leaving the transactions alone. You can remove them once they become conflicted. For that to happen, another transaction spending the same inputs needs to become confirmed.


---

