def remove_smtp(api, assessment_id):
    """Remove all SMTP from an assessment."""
    allSMTP = api.smtp.get()

    for smtp in allSMTP:
        if smtp.name.startswith(assessment_id):
            api.smtp.delete(smtp.id)

    return True