added function delete network.