Perl script to clean the MMC repository