user1891: For every transaction I wanted to get, I was creating a new address, but soon I realized that there is just no way to delete all these addresses from the UI.
To make it clear, here is a picture:
I am using Bitcoin-Qt
Is there an easy way to delete all these addresses? 

user615: The only way I know of Is to use something like Pywallet, as Meni mentioned. 
However, I would like to point out that it is best practice to create a new address for each transaction.
If you are concerned with not being able to find a particular address, you should take care to label all your address in a useful manner at the time you create them. Once labeled, they are searchable.

user5559: I found using the the command-line option datadir extremely helpful.
Backing up everything first is of course advised. Once you specified a new
datadir, a new wallet is created in this datadir. Then use one of the new addresses of the new wallet and transfer the funds from the old wallet to it.
Delete the old wallet in the old datadir and copy over the new wallet.dat.
Works for me :)
If there is a particular address that you would like to keep, working with
dumpprivkey and importing should work.

user83779: 
Archive all the priv keys that you want to save. Close bitcoin-qt.
Delete wallet.dat.
Open bitcoin-qt.exe again.
Import keys that you have dumped before.


user575: I don't think it's possible to delete addresses from just the UI.
You can delete addresses completely using Pywallet. However, unless you back up the key first, this means that you will not have access to any coins sent to these addresses (either future coins or existing coins which have not moved elsewhere).
The many addresses will be more manageable if you label them. You can even simply label each as "Z" to put them at the end of the list when sorted by label.

1891: <p>For every transaction I wanted to get, I was creating a new address, but soon I realized that there is just no way to delete all these addresses from the UI.</p>

<p>To make it clear, here is a picture:<img src="https://i.stack.imgur.com/jUjgb.jpg" alt="enter image description here"></p>

<p>I am using <strong>Bitcoin-Qt</strong></p>

<p>Is there an easy way to delete all these addresses? </p>
 615: <p>The only way I know of Is to use something like Pywallet, as Meni mentioned. </p>

<p>However, I would like to point out that it is best practice to create a new address for each transaction.</p>

<p>If you are concerned with not being able to find a particular address, you should take care to label all your address in a useful manner at the time you create them. Once labeled, they are searchable.</p>
 5559: <p>I found using the the command-line option <code>datadir</code> extremely helpful.
Backing up everything first is of course advised. Once you specified a new
datadir, a new wallet is created in this datadir. Then use one of the new addresses of the new wallet and transfer the funds from the old wallet to it.</p>

<p>Delete the old wallet in the old datadir and copy over the new wallet.dat.
Works for me :)</p>

<p>If there is a particular address that you would like to keep, working with
<code>dumpprivkey</code> and importing should work.</p>
 83779: <ol>
<li>Archive all the priv keys that you want to save. Close bitcoin-qt.</li>
<li>Delete wallet.dat.</li>
<li>Open bitcoin-qt.exe again.</li>
<li>Import keys that you have dumped before.</li>
</ol>
 575: <p>I don't think it's possible to delete addresses from just the UI.</p>

<p>You can delete addresses completely using <a href="https://bitcointalk.org/index.php?topic=34028.0" rel="nofollow">Pywallet</a>. However, unless you back up the key first, this means that you will not have access to any coins sent to these addresses (either future coins or existing coins which have not moved elsewhere).</p>

<p>The many addresses will be more manageable if you label them. You can even simply label each as "Z" to put them at the end of the list when sorted by label.</p>
