# How to remove UnknownAlbum folder and shift all files up one level

**URL:** <https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907>\
**Category:** Support\
**Created:** [February 8, 2021, 6:22am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907 "2021-02-08T06:22:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 6:22am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/1 "2021-02-08T06:22:23Z")

</div>

Hello,

So I have a music management software that created folder for every artist..  
Currently it goes like this C:\Music\ArtistName&Track title\UnknownAlbum\xxxxx.mp3

Id like to remove the "unknownAlbum" from the directory and just have the mp3 reside one level up  
in the \ArtistName&Title\ folder... essentially just moving the file up one level in the directory and/or eliminating the \UnknownAlbum\ folder..

Is there a script I can use to achieve this?

Thank you in advance!

---

<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:** [February 8, 2021, 6:34am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/2 "2021-02-08T06:34:23Z")

</div>

I hope that tags are filled (except the one for album, obviously).  
Try Convert\>Tag-Tag for \_DIRECTORY (you may have to type that in),  
Format string: `C:\Music\%artist% & %title%\`  
(is that correct? you have a folder that is named like the track title and then the track inside that folder? Isn't that a little redundant? Just asking.)

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 6:53am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/3 "2021-02-08T06:53:49Z")

</div>

Well, it basically keeps each track in its own folder rather than bunch of files all in one parent folder..  
It is a bit redundant, but it does keep them organized.. I mean it usually just artist name, so all tracks by an artist are in appropriate folder.. that could be a great solution too, so if you know how, I'm all ears.. just trying to keep the file path reasonably short and having them all being in "unknownAlbum" is just a waste

---

<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:** [February 8, 2021, 6:56am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/4 "2021-02-08T06:56:33Z")

</div>

> [@alex151](#):
>
> having them all being in "unknownAlbum" is just a waste

Very true.  
If you tell us what a favoured structure should look like, perhaps we can think of something.

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 7:14am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/5 "2021-02-08T07:14:11Z")

</div>

well, i think the easiest way would be to just remove the "UnknownAlbum" folder and move everything one level up.. There are also some other folders in similar situation that id like to remove.. so a script that would remove a designated folder from the structure and shift everything below it into its parent folder would be a great way

---

<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:** [February 8, 2021, 7:24am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/6 "2021-02-08T07:24:17Z")

</div>

Please check what the suggestion in [post #2](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/2) can do for you.

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 7:38am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/7 "2021-02-08T07:38:51Z")

</div>

That helps, but its not a very clean collection, so i wouldnt be surprised if some files dont have the artist info and the track title is super long (Artist, title, bpm, key, etc)

I guess im just looking to get rid of the specific folder in the chain, redefining the path could create problems Id rather not encounter..

---

<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:** [February 8, 2021, 7:44am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/8 "2021-02-08T07:44:07Z")

</div>

> [@alex151](#):
>
> That helps, but its not a very clean collection

Then I would not bother about a folder structure but get the tags filled properly first.  
You know that you can extract tag information also from folder names? So if you have the artist's name in the folder but not in the tag, then I would first try to get that updated.

You could also try Convert\>Tag-Tag for \_DIRECTORY  
Format string: `$replace(%_path%,\UnknownAlbum,)`  
Please note that the function to replace is case sensitive.

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 8:19am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/9 "2021-02-08T08:19:55Z")

</div>

> [@ohrenkino](#):
>
> `$replace(%_path%,\UnknownAlbum,)`

That ALMOST worked!

Only it writes the path twice..F:/Music/Artistname/ F/Music/Artistname/xxxxxx.mp3

---

<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:** [February 8, 2021, 8:28am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/10 "2021-02-08T08:28:54Z")

</div>

Then tell me which function you used.  
As Convert\>Tag-Tag has a preview you should have seen the probable result there already ...

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 8:34am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/11 "2021-02-08T08:34:56Z")

</div>

![Untitled](https://community.mp3tag.de/uploads/default/original/2X/5/5952b690fc26dab550ab90f9c59b2d99836e1925.jpeg)

The preview looks perfect, but the end result is this double path, please see the selected two files

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 8:36am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/12 "2021-02-08T08:36:59Z")

</div>

I did Tag-Tag, field is \_DIRECTORY  
the format string is $replace(%\_path%,\UnknownAlbum,)

---

<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:** [February 8, 2021, 8:40am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/13 "2021-02-08T08:40:29Z")

</div>

Yes, ... and I do not see "UnknownAlbum" in the path any more. I would grade that as "success".  
I just tried my suggestion and it works as intended. So please show me a dump of the Tag-Tag-dialogue.

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 8:46am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/14 "2021-02-08T08:46:37Z")

</div>

![Untitled](https://community.mp3tag.de/uploads/default/original/2X/0/00d06ddf9be17b769e3564f7d4f9088a1561b947.jpeg)

This?

---

<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:** [February 8, 2021, 8:51am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/15 "2021-02-08T08:51:24Z")

</div>

It would be nice to see the preview for a file that actually produces a sensible result.  
This path does not contain "UnknownAlbum" and seems to be messed up somehow. I would assume that the duplication of paths has happened before.  
If it were caused by the $replace() then the duplicated bit should not look like "blank F" but like "F blank" as the ":" is an invalid character in the middle of a path.

---

<div class="post-metadata">

**Author:** ![alex151](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@alex151](https://community.mp3tag.de/u/alex151)\
**Post date:** [February 8, 2021, 8:55am UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/16 "2021-02-08T08:55:49Z")

</div>

Weird, i just tried it again on other files and it worked fine.. I'll guess ill have to play with it..  
Thank you sooo much for your help, it was awesome! 🙏

---

<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:29pm UTC](https://community.mp3tag.de/t/how-to-remove-unknownalbum-folder-and-shift-all-files-up-one-level/51907/18 "2026-02-09T12:29:03Z")

</div>


