# Conditional delete

**URL:** <https://community.mp3tag.de/t/conditional-delete/42345>\
**Category:** Support\
**Created:** [July 15, 2018, 5:48am UTC](https://community.mp3tag.de/t/conditional-delete/42345 "2018-07-15T05:48:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 15, 2018, 9:33am UTC](https://community.mp3tag.de/t/conditional-delete/42345/2 "2018-07-15T09:33:06Z")

</div>

> [@sheepdisease](#):
>
> surely it could check for the highest track number within each folder to produce the same effect

No it can't.  
THis would mean that the property folder of one file would have to be compared with another file's property.  
And, as you know, Mp3tag does not compare data between files.

You could create an export that sorts by folder, counts the tracks in that folder and then outputs some kind of batch job for the command shell to delete the files.

Or you could renumber all the files and include the total number in the track number and then delete manually all the files that have a trailing 3 (or less).

---

_[View the full topic](https://community.mp3tag.de/t/conditional-delete/42345)._
