Except as provided in Section 8315, a city legislative body may vacate, pursuant to this part, all or part of a street, highway, or public service easement within the city and a board of supervisors may vacate all or part of a street, highway, or public service easement within the county but outside a city.