Scalr\Service\OpenStack\OpenStack::deleteSecurityGroup PHP Method

deleteSecurityGroup() public method

Removes a specific security group
public deleteSecurityGroup ( integer $securityGroupId ) : boolean
$securityGroupId integer Security group unique identifier.
return boolean Returns true on success or throws an exception
    public function deleteSecurityGroup($securityGroupId)
    {
        if ($this->hasNetworkSecurityGroupExtension()) {
            $result = $this->network->securityGroups->delete($securityGroupId);
        } else {
            $result = $this->servers->securityGroups->delete($securityGroupId);
        }
        return $result;
    }