Install python bridge utils pip install pybrctl run the following script: from pybrctl import BridgeController brctl = BridgeController() for br in brctl.showall(): br_ports = br.getifs() for port in br_ports: br.delif(port) brctl.delbr(br.name)