def remove_group(api, assessment_id):
    """Remove all groups from an assessment."""
    allGroups = api.groups.get()

    for group in allGroups:
        if group.name.startswith(assessment_id):
            api.groups.delete(group.id)

    return True