public deleteRouter ( string $routerId ) : boolean | ||
$routerId | string | The ID of the router to remove. |
return | boolean | Returns true on success or throws an exception otherwise |
public function deleteRouter($routerId)
{
$result = false;
$response = $this->getClient()->call($this->service, sprintf('/routers/%s', $this->escape($routerId)), null, 'DELETE');
if ($response->hasError() === false) {
$result = json_decode($response->getContent());
$result = true;
}
return $result;
}