# Is it possible to delete all existing fields with a Web Source Script?

**URL:** https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046
**Category:** Web Sources Discussion
**Created:** [April 1, 2025, 4:00pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046 "2025-04-01T16:00:49Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [April 1, 2025, 4:00pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/1 "2025-04-01T16:00:49Z")

</div>

Imagine getting an album full of fields you don't want.

Do we have a way to delete all existing (found) fields at the start of a Web Source Script to have full control over what the following script writes into to the files?

(I know that I could use an Action "[Remove Fields expect](https://docs.mp3tag.de/actions/remove-fields-except/)".  
But I'm looking for a "script-only" solution.)

Any ideas on how to do this if you don't know which fields exist?

---

<div class="post-metadata">

### Author: ![Jaeger1349](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jaeger1349/32/19547_2.png) [@Jaeger1349](https://community.mp3tag.de/u/Jaeger1349)
#### Post date: [April 1, 2025, 4:39pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/2 "2025-04-01T16:39:17Z")

</div>

I have an Action Group who does this, to me it's helpful to cleanse tags to get rid of all fields I consider useless:

T=10  
F=ALBUM;ALBUMARTIST;ARTIST;COVER;GENRE;TITLE;TRACK;YEAR

[#1]  
T=4  
[#0]  
F=TITLE  
1=\[.+?\]  
2=  
3=0

[#2]  
T=4  
F=ALBUM  
1=\[.+?\]  
2=  
3=0

[#3]  
T=4  
F=TITLE  
1=\(.+?\)  
2=  
3=0

[#4]  
T=4  
F=ALBUM  
1=\(.+?\)  
2=  
3=0

The last 4 ones are to erase all parenthesis and its contents btw. I hope this would be helpful for you.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [April 1, 2025, 4:49pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/3 "2025-04-01T16:49:20Z")

</div>

Thank you for your (first) answer @Jaeger1349

As I wrote above:

> [@LyricsLover](#):
>
> (I know that I could use an Action "[Remove Fields expect](https://docs.mp3tag.de/actions/remove-fields-except/)".  
> But I'm looking for a "script-only" solution.)

I'm looking for a Web Source Script solution and that's why I wrote my question in this category #Development > Web Sources Discussion.

BTW:  
Have you ever tested your posted MTA Action?

~~If you really use it this way, you always delete your covers!~~ [Because](https://docs.mp3tag.de/actions/remove-fields-except/#preserving-embedded-cover-art)

### Preserving embedded cover art

Use `PICTURE` as field name if you want to preserve embedded cover art.

* * *

_Update 02.04.2025:_  
For future readers from the updated documentation including `COVER` or `PICTURE`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/a/b/abd013f221bbf81a1479826aeea7f7ffad0af2d5.png)

---

<div class="post-metadata">

### Author: ![Jaeger1349](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jaeger1349/32/19547_2.png) [@Jaeger1349](https://community.mp3tag.de/u/Jaeger1349)
#### Post date: [April 1, 2025, 4:59pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/4 "2025-04-01T16:59:33Z")

</div>

I don't know really if it's necessary a script to do what you want, with an action group it's more than ok.

PS: yeah, I use it all the time and the front cover (the one image that i use for my files) it remains without problem.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 1, 2025, 5:07pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/5 "2025-04-01T17:07:48Z")

</div>

> [@Jaeger1349](#):
>
> front cover

If you use

> [@Jaeger1349](#):
>
> ...IST;COVER;GE...

then you keep a user-defined field called COVER (which is probably not there anyway) but most likely not the embedded picture as the field name for that is PICTURE as written in the documentation and quoted by @LyricsLover.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 1, 2025, 6:38pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/6 "2025-04-01T18:38:54Z")

</div>

Both `COVER` and `PICTURE` are preserving embedded cover art ( ~~only the latter is documented~~ I've now updated the documentation to include both).

---

<div class="post-metadata">

### Author: ![Jaeger1349](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jaeger1349/32/19547_2.png) [@Jaeger1349](https://community.mp3tag.de/u/Jaeger1349)
#### Post date: [April 1, 2025, 6:43pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/7 "2025-04-01T18:43:46Z")

</div>

Well, that's strange, because i don't remember creating any user-defined field for the cover image, i always believed that I used the default one, but nm, it works fine for me lol.

---

<div class="post-metadata">

### Author: ![Jaeger1349](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jaeger1349/32/19547_2.png) [@Jaeger1349](https://community.mp3tag.de/u/Jaeger1349)
#### Post date: [April 1, 2025, 6:45pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/8 "2025-04-01T18:45:26Z")

</div>

Thanks for the clarification 🙂

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 1, 2025, 6:46pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/9 "2025-04-01T18:46:36Z")

</div>

> [@LyricsLover](#):
>
> Do we have a way to delete all existing (found) fields at the start of a Web Source Script to have full control over what the following script writes into to the files?

No, it's always a merge operation in the Windows version of Mp3tag. The macOS version is slightly different as it provides means to overwrite existing or merge with existing tag fields.

However, it's not possible to influence this from a Tag Source. This is intended and by design.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 21, 2025, 1:48pm UTC](https://community.mp3tag.de/t/is-it-possible-to-delete-all-existing-fields-with-a-web-source-script/68046/10 "2025-05-21T13:48:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
