'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Networking service object from the client. $networkingService = $client->networkingService(null, '{region}'); // 3. Get subnet. $subnet = $networkingService->getSubnet('{subnetId}'); // 4. Delete subnet. $subnet->delete();