# How to delete old folders after rename

**URL:** https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319
**Category:** General Discussion
**Created:** [September 30, 2005, 10:38pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319 "2005-09-30T22:38:03Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![blackspawn](https://community.mp3tag.de/user_avatar/community.mp3tag.de/blackspawn/32/86_2.png) [@blackspawn](https://community.mp3tag.de/u/blackspawn)
#### Post date: [September 30, 2005, 10:38pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/1 "2005-09-30T22:38:03Z")

</div>

Hello this is my first post but I've been using Mp3Tag for over a year now so let me first congratulate Mr. Florian for this excellent program. No tagger/rename can even compare to this one (at least those I've tried...). Really good!!

Now for my question: After I change my template for renaming files from tags from for example _%artist%\%album%\%title%_ to _%artist%(%year%) %album%\%title%_ the old folder _%artist%\%album%_ remains (empty of course). What I want is after the renaming to automaticaly delete this old folder. Is this acheivable? if so how? if not then consider this a feature request please 🙂

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [October 1, 2005, 3:54am UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/2 "2005-10-01T03:54:11Z")

</div>

It is not possible at the moment and AFAIK, Florian doesn't want to implement it either. 🙂

---

<div class="post-metadata">

### Author: ![squonk63](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@squonk63](https://community.mp3tag.de/u/squonk63)
#### Post date: [October 1, 2005, 9:48am UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/3 "2005-10-01T09:48:03Z")

</div>

> [@](#):
>
> What I want is after the renaming to automaticaly delete this old folder.
> 
> \<{POST\_SNAPBACK}\>

The problem here is what to do with all files (jpg, nfo, txt or others) which are in the same original folder and that MP3Tag doesn't know about (it loads info only for mp3 or other musical format).

I think Florian is right; better to leave the user decide about it.

But it's only my opinion, of course...

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [October 1, 2005, 12:05pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/4 "2005-10-01T12:05:49Z")

</div>

To delete empty folders, have a look at this article: [http://www.pcmag.com/article2/0,1759,805015,00.asp](http://www.pcmag.com/article2/0,1759,805015,00.asp)

---

<div class="post-metadata">

### Author: ![Frank\_Bicking](https://community.mp3tag.de/user_avatar/community.mp3tag.de/frank_bicking/32/26_2.png) [@Frank\_Bicking](https://community.mp3tag.de/u/Frank_Bicking)
#### Post date: [October 1, 2005, 1:06pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/5 "2005-10-01T13:06:27Z")

</div>

foobar2000 0.9 beta supports this, it can also move additional files with the audio files.

---

<div class="post-metadata">

### Author: ![blackspawn](https://community.mp3tag.de/user_avatar/community.mp3tag.de/blackspawn/32/86_2.png) [@blackspawn](https://community.mp3tag.de/u/blackspawn)
#### Post date: [October 1, 2005, 9:54pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/6 "2005-10-01T21:54:15Z")

</div>

> [@](#):
>
> The problem here is what to do with all files (jpg, nfo, txt or others) which are in the same original folder and that MP3Tag doesn't know about (it loads info only for mp3 or other musical format)
> 
> \<{POST\_SNAPBACK}\>

Yes that is a concern but I was talking about folders containing only mp3 and not other files (the folders would be completely empty, 0.0 bytes).

> [@](#):
>
> To delete empty folders, have a look at this article: [http://www.pcmag.com/article2/0,1759,805015,00.asp](http://www.pcmag.com/article2/0,1759,805015,00.asp)
> 
> \<{POST\_SNAPBACK}\>

After reading this article I guess this is what I'm going to do for my partiular case... seems simple enough. Thanks Sebastian Mares 🙂

---

<div class="post-metadata">

### Author: ![awx](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@awx](https://community.mp3tag.de/u/awx)
#### Post date: [October 10, 2005, 1:35pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/7 "2005-10-10T13:35:10Z")

</div>

and what about renaming the same folder with mp3tag not creating new one?

---

<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: [March 4, 2023, 4:28pm UTC](https://community.mp3tag.de/t/how-to-delete-old-folders-after-rename/2319/8 "2023-03-04T16:28:20Z")

</div>

4 posts were split to a new topic: [Delete entries in tag panel directory list](https://community.mp3tag.de/t/delete-entries-in-tag-panel-directory-list/60270)
