For the purpose of assuring the safety of persons using highways and sidewalks, a local government having jurisdiction over public streets, sidewalks, alleys, bridges, and other ways of public passage may by ordinance prohibit operation of personal delivery devices within its jurisdiction if the local government determines that the prohibition is necessary.
N.C. Gen. Stat. § 20-175.17