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