code: def delete_os_nwk_db(self, net_id, seg, vlan):
          
          if seg is not None:
              self.service_segs.release_segmentation_id(seg)
          if vlan is not None:
              self.service_vlans.release_segmentation_id(vlan)
          self.os_helper.delete_network_all_subnets(net_id)
          # There's a chance that OS network got created but it's ID
          # was not put in DB
          # So, deleting networks in os that has part of the special
          # name
          self.os_helper.delete_network_subname(fw_const.IN_SERVICE_NWK)
          self.delete_network_db(net_id)
          self.clear_fw_entry_by_netid(net_id)
          self.service_in_ip.release_subnet_by_netid(net_id)
          self.service_out_ip.release_subnet_by_netid(net_id)
docs: Delete the Openstack Network from the database.
  
          Release the segmentation ID, VLAN associated with the net.
          Delete the network given the partial name.
          Delete the entry from Network DB, given the net ID.
          Delete the entry from Firewall DB, given the net ID.
          Release the IN/OUT sug=bnets associated with the net.