src/Api/Route.php
public function delete(string $routeId)
    {
        Assert::stringNotEmpty($routeId);

        $response = $this->httpDelete(sprintf('/v3/routes/%s', $routeId));

        return $this->hydrateResponse($response, DeleteResponse::class);
    }
public function delete(string $routeId)
    {
        Assert::stringNotEmpty($routeId);

        $response = $this->httpDelete(sprintf('/v3/routes/%s', $routeId));

        return $this->hydrateResponse($response, DeleteResponse::class);
    }
public function delete ( string $ routeId ) { Assert :: stringNotEmpty ( $ routeId ) ; $ response = $ this -> httpDelete ( sprintf ( '/v3/routes/%s' , $ routeId ) ) ; return $ this -> hydrateResponse ( $ response , DeleteResponse :: class ) ; }
Deletes a Route based on the ID.

@param string $routeId Route ID returned by the Routes::index() method

@return DeleteResponse
Deletes a Route based on the ID .