def remove_campaigns(api, assessment_id):
    """Remove all campaigns from an assessment."""
    allCampaigns = api.campaigns.get()

    for campaign in allCampaigns:
        if campaign.name.startswith(assessment_id):
            api.campaigns.delete(campaign.id)

    return True