public void delete(String resourceGroupName, String localNetworkGatewayName) {
        deleteWithServiceResponseAsync(resourceGroupName, localNetworkGatewayName).toBlocking().last().body();
    }
public void delete ( String resourceGroupName , String localNetworkGatewayName ) { deleteWithServiceResponseAsync ( resourceGroupName , localNetworkGatewayName ) . toBlocking ( ) . last ( ) . body ( ) ; }
Deletes the specified local network gateway.

@param resourceGroupName The name of the resource group.
@param localNetworkGatewayName The name of the local network gateway.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent