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 |
---|---|---|---|
|
Required |
The ID of the route table to be deleted. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
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