deleteRouteTable
inline suspend fun Ec2Client.deleteRouteTable(crossinline block: DeleteRouteTableRequest.Builder.() -> Unit): DeleteRouteTableResponse
Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.
Samples
fun main() {
//sampleStart
// This example deletes the specified route table.
ec2Client.deleteRouteTable {
routeTableId = "rtb-22574640"
}
//sampleEnd
}