# Deleting part of the "Album" tag

**URL:** <https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323>\
**Category:** Support\
**Created:** [December 22, 2013, 9:02am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323 "2013-12-22T09:02:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foxman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/5f9b8f/32.png) [@Foxman](https://community.mp3tag.de/u/Foxman)\
**Post date:** [December 22, 2013, 9:02am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/1 "2013-12-22T09:02:05Z")

</div>

Hi all

To get the correct view of my music i have added the artist name to the beginning of the album name separated by a hyphen in the "Album" tag, as below

Album Tag = One Direction - Greatest Hits Of All Time

Cant wait for that to be released

I have been trialing a new UPNP server and this is now causing problems.

Is there an action that can be written that can remove the "One Direction - " section form the album tag thereby leaving the correct album name.

The album tracks for each album are stored in a directory with the correct album name under the artist in the following format.

One Direction

```
 Greatest Hits Of All Time
       Track 1
       Track 2
       Etc.......

```

Just stating this in case there's a way to use the directory name to copy into the Album tag

If all the above is possible, fingers crossed, is there a way to automate the update process rather than opening each album and running the action.

Clear as mud im sure

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [December 22, 2013, 9:21am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/2 "2013-12-22T09:21:57Z")

</div>

> [@Foxman](#):
>
> To get the correct view of my music i have added the artist name to the beginning of the album name separated by a hyphen in the "Album" tag, ...  
> Album Tag = One Direction - Greatest Hits Of All Time  
> ...  
> Is there an action that can be written that can remove the "One Direction - " section form the album tag thereby leaving the correct album name.  
> The album tracks for each album are stored in a directory with the correct album name under the artist in the following format. ... Just stating this in case there's a way to use the directory name to copy into the Album tag ...

In this case, where the relevant data, artist and album, is already stored within the tag-fields ARTIST and ALBUM, there is no need to use the filename.  
Apply an action "Guess values" ...

 

_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format \_\_:_ **%ALBUM%**  
_Guessing pattern:_ **%DUMMY% - %ALBUM%**

 

DD.20131222.1122.CET

---

<div class="post-metadata">

**Author:** ![Foxman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/5f9b8f/32.png) [@Foxman](https://community.mp3tag.de/u/Foxman)\
**Post date:** [December 22, 2013, 9:38am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/3 "2013-12-22T09:38:11Z")

</div>

> [@DetlevD](#):
>
> In this case, where the relevant data, artist and album, is already stored within the tag-fields ARTIST and ALBUM, there is no need to use the filename.  
> Apply an action "Guess values" ...
> 
>  
> 
> _Actiontype 7:_ **Import tag fields (guess values)**  
> _Source format \_\_:_ **%ALBUM%**  
> _Guessing pattern:_ **%DUMMY% - %ALBUM%**
> 
>  
> 
> DD.20131222.1122.CET

Many thanks Detlev

That works perfectly. Im presuming that to do all tracks in one go id just need to select the top value directory, which in my case is "Music". There are several hundred albums in this directory, will Mp3Tag cope with this or is it best to break it down.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [December 22, 2013, 10:00am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/4 "2013-12-22T10:00:00Z")

</div>

> [@Foxman](#):
>
> Many thanks Detlev  
> That works perfectly. Im presuming that to do all tracks in one go id just need to select the top value directory, which in my case is "Music". There are several hundred albums in this directory, will Mp3Tag cope with this or is it best to break it down.

Mp3tag can work with thousands of files, it is just a matter of time.  
You should have to make sure, that your collection has no "runaways".  
You should make a simple check whether the files, resp. the tag-field ALBUM within the files, follow the same naming convention.  
Open the "Filter" dialog by pressing [F3] and type:

ALBUM MATCHES "^.+? - .+?$"

In the status line you can see the amount of files, which have been filtered into relation of all files loaded.  
Then decide what to do next.

DD.20131222.1200.CET

---

<div class="post-metadata">

**Author:** ![Foxman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/5f9b8f/32.png) [@Foxman](https://community.mp3tag.de/u/Foxman)\
**Post date:** [December 22, 2013, 10:42am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/5 "2013-12-22T10:42:00Z")

</div>

> [@DetlevD](#):
>
> Mp3tag can work with thousands of files, it is just a matter of time.  
> You should have to make sure, that your collection has no "runaways".  
> You should make a simple check whether the files, resp. the tag-field ALBUM within the files, follow the same naming convention.  
> Open the "Filter" dialog by pressing [F3] and type:
> 
> ALBUM MATCHES "^.+? - .+?$"
> 
> In the status line you can see the amount of files, which have been filtered into relation of all files loaded.  
> Then decide what to do next.
> 
> DD.20131222.1200.CET

Ah yes i see what that does but can it be changed to return the the tracks that dont match, as this shows what does match the filter.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [December 22, 2013, 10:49am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/6 "2013-12-22T10:49:53Z")

</div>

> [@Foxman](#):
>
> Ah yes i see what that does but can it be changed to return the the tracks that dont match, as this shows what does match the filter.

NOT ALBUM MATCHES "^.+? - .+?$"

See also ...  
[https://docs.mp3tag.de/filter](https://docs.mp3tag.de/filter)

DD.20131222.1250.CET

---

<div class="post-metadata">

**Author:** ![Foxman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/5f9b8f/32.png) [@Foxman](https://community.mp3tag.de/u/Foxman)\
**Post date:** [December 22, 2013, 10:58am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/7 "2013-12-22T10:58:40Z")

</div>

> [@DetlevD](#):
>
> NOT ALBUM MATCHES "^.+? - .+?$"
> 
> See also ...  
> [https://docs.mp3tag.de/filter](https://docs.mp3tag.de/filter)
> 
> DD.20131222.1250.CET

Thanks again, can i ask one last question, im trying to replace whatever is in the "DISCNUMBER" tag with the value "1".

Ive goto

replace "DISCNUMBER": "?" -\> "1"

I cant work out what goes in the "?" to change it from any number

And can i add this to the action above so it runs in one instance.

---

<div class="post-metadata">

**Author:** ![Foxman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/5f9b8f/32.png) [@Foxman](https://community.mp3tag.de/u/Foxman)\
**Post date:** [December 22, 2013, 11:18am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/8 "2013-12-22T11:18:23Z")

</div>

> [@Foxman](#):
>
> Thanks again, can i ask one last question, im trying to replace whatever is in the "DISCNUMBER" tag with the value "1".
> 
> Ive goto
> 
> replace "DISCNUMBER": "?" -\> "1"
> 
> I cant work out what goes in the "?" to change it from any number
> 
> And can i add this to the action above so it runs in one instance.

OK using

remove "DISCNUMBER"

does what i want.

Many thanks Detlev for your help

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [December 22, 2013, 11:26am UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/9 "2013-12-22T11:26:06Z")

</div>

> [@Foxman](#):
>
> Thanks again, can i ask one last question, im trying to replace whatever is in the "DISCNUMBER" tag with the value "1".

Use an action "Format value" or the converter "Tag - Tag" or use the dialog "Extended Tags...".  
This will set a value of your wish into the choosen tag-field of all selected files at once.

> [@Foxman](#):
>
> And can i add this to the action above so it runs in one instance.

Yes, you can collect and arrange several actions of any action type into one or more groups of actions.  
See menu "Actions/Actions", use dialog "Action groups" to create a new action group, give it a name, then add the actions you need.

DD.20131222.1333.CET

---

<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:** [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/deleting-part-of-the-album-tag/15323/10 "2026-02-09T12:24:50Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


