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