purgeEmptyRepertoire