# Remove empty fields

**URL:** https://community.mp3tag.de/t/remove-empty-fields/9301
**Category:** Web Sources Discussion
**Created:** [November 10, 2009, 11:21am UTC](https://community.mp3tag.de/t/remove-empty-fields/9301 "2009-11-10T11:21:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [November 10, 2009, 11:21am UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/1 "2009-11-10T11:21:23Z")

</div>

Hi

I can't find solution - how to delete all empty fields from tag? After websource and action I still have many (all possible from websource) empty fields, and its saved in tag.  
For now I can do "Extendet tags" -\> see empty tag "OK" -\> and empty tag removed! But this not very usable in King of Batch tagging mode)

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 10, 2009, 11:52am UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/2 "2009-11-10T11:52:41Z")

</div>

web sources cannot create empty fields. Your fields probably all have a space in their tag which comes from Pufas discogs script.

To remove them with an action try  
_Action type:_ **Replace with regular expressions**  
_Field:_ **\_TAG**  
_Regular expression:_ **(?-m)^\s+$**  
_Replace matches with:_

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [November 10, 2009, 3:34pm UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/3 "2009-11-10T15:34:38Z")

</div>

Thanks for reply Dano

Hm. I know about spaces in Pufas script, and I think what I kill this space with Replace with regular expressions \_TAG " $" "" .. And after this I see empty (without space) tags in mp3tag and in my player.  
With you action, fields also looks like empty, but also still saved in file..

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 11, 2009, 12:24pm UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/4 "2009-11-11T12:24:26Z")

</div>

What kind of audio files are these?  
Maybe you can upload a sample file that I can test?

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [November 12, 2009, 9:57am UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/5 "2009-11-12T09:57:47Z")

</div>

[Here's](http://rghost.ru/604713/private/c7147f0f177abc5f7648ed494c801a0e) one of this files. Just simple flac (?)

What I did:  
Clear tags for this files in my player (JRMC)  
Clear tags for this files in mp3tag  
Receive info from websources..  
Apply actions, last action - Replace with regular expressions \_TAG "(?-m)^\s+$" ""  
Import files in my player - and see empty tags.  
Reopen files in mp3tag - and also see it.  
If press "OK" after view extended tags in mp3tag - fields disappear.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 12, 2009, 10:15am UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/6 "2009-11-12T10:15:16Z")

</div>

Thanks, yes it's different on flac files. Doesn't work.  
With mp3 it works.

Instead of "View \> Extended tags" you can try [Ctrl+S] (Save tag) on the files. It should also delete the empty tags.

---

<div class="post-metadata">

### Author: ![morrison](https://community.mp3tag.de/user_avatar/community.mp3tag.de/morrison/32/203_2.png) [@morrison](https://community.mp3tag.de/u/morrison)
#### Post date: [November 12, 2009, 11:34am UTC](https://community.mp3tag.de/t/remove-empty-fields/9301/7 "2009-11-12T11:34:52Z")

</div>

Thanks for help Dano!
