# Remove duplicate DISCNUMBER fields

**URL:** <https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633>\
**Category:** Support\
**Created:** [July 16, 2020, 12:31am UTC](https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633 "2020-07-16T00:31:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eclectic](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/2bfe46/32.png) [@Eclectic](https://community.mp3tag.de/u/Eclectic)\
**Post date:** [July 16, 2020, 12:31am UTC](https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633/1 "2020-07-16T00:31:44Z")

</div>

Hi,

New member here. I have used MP3Tag for years in a very manual way. I intend to improve my skills.

I have a mostly-FLAC collection of ~ 50K tracks, mostly albums. In the DISCNUMBER tag some files display `n\\n`, e.g., `2\\2` or `1\\1`. I have finally determined that the cause is that there are two DISCNUMBER tags in the problem files. Using Florian's suggestion, "If you simply want to delete certain fields from your files, select the files, open the extended tag dialog via [Alt+T], delete the fields and press OK." I can delete the second DISCNUMBER tag and clean up the display to contain only n.

Since two DISCNUMBER tags for any file is incorrect, I want to find only files with those redundant tags and delete the second tag. Where there is only one DISCNUMBER tag, I want to retain that one.

Will you please suggest a method for finding only duplicate DISCNUMBER tags, and removing the second of that pair.

Thanks

---

<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:** [July 16, 2020, 4:34am UTC](https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633/2 "2020-07-16T04:34:34Z")

</div>

You can filter for files that have more than just 1 field of the type DISCNUMBER with  
`NOT "$meta(discnumber,1)" IS ""`

---

<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:** [July 16, 2020, 7:09am UTC](https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633/3 "2020-07-16T07:09:44Z")

</div>

There is also an action type [Remove duplicate fields](https://docs.mp3tag.de/actions/remove-duplicate-fields). It keeps the first one of the duplicates.

---

<div class="post-metadata">

**Author:** ![Eclectic](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/2bfe46/32.png) [@Eclectic](https://community.mp3tag.de/u/Eclectic)\
**Post date:** [July 19, 2020, 11:50pm UTC](https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633/4 "2020-07-19T23:50:31Z")

</div>

> [@Florian](#):
>
> [Remove duplicate fields](https://docs.mp3tag.de/actions/remove-duplicate-fields)

Thanks so much ohrenkino and Rlorian:  
I used the Remove duplicate fields action and it worked perfectly. It took a while, but there were no issues that I have noted as a result.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [January 6, 2021, 5:49pm UTC](https://community.mp3tag.de/t/remove-duplicate-discnumber-fields/49633/5 "2021-01-06T17:49:57Z")

</div>

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