# File lib/fog/softlayer/requests/network/delete_network.rb, line 29 def delete_network(id) billing_id = request(:network_vlan, "#{id}/get_billing_item").body['id'] billing_id.nil? and raise "SoftLayer VLAN with ID #{id} cannot be deleted." # will be automatically deleted when hardware using it is deleted. request(:billing_item, "#{billing_id}/cancel_service").body end