delete_route_table ( $route_table_id, $opt )

Deletes a route table from a VPC. The route table must not be associated with a subnet. You can’t delete the main route table. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.

Access

public

Parameters

Parameter

Type

Required

Description

$route_table_id

string

Required

The ID of the route table to be deleted.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Delete a VPC route table.

$ec2 = new AmazonEC2();

$response = $ec2->delete_route_table('rtb-e68b0b8f');

var_dump($response->isOK());
Result:
bool(true)

Related Methods

Source

Method defined in services/ec2.class.php | Toggle source view (7 lines) | View on GitHub

public function delete_route_table($route_table_id, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['RouteTableId'] = $route_table_id;
    
    return $this->authenticate('DeleteRouteTable', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback