def METHOD_NAME(file_count, inspiration, output_folder, delete_when_finished, on_progress):
    if inspiration == 0:
        generated_file_names = generate_2600(
            file_count, output_folder, on_progress=on_progress)
    elif inspiration == 1:
        generated_file_names = generate_emails(
            file_count, output_folder, on_progress=on_progress)
    if delete_when_finished:
        on_progress(0, msg=_('Deleting files'))
        for i in range(0, file_count):
            os.unlink(generated_file_names[i])
            on_progress(1.0 * (i+1)/file_count)
    on_progress(1.0, is_done=True)