Fix return value of delete_network