Deleting several layers at once?

Making some duplicates of masters and want to delete the heaping amount of layers I have amassed for those. Is it possible to delete all the layers at once, except for the master layer? :slight_smile:

Yes, mekkablue has made a script for exactly this