Method: Fog::Compute::AWS::Real#delete_vpc
- Defined in:
- lib/fog/aws/requests/compute/delete_vpc.rb
permalink #delete_vpc(vpc_id) ⇒ Object
Deletes a VPC. You must detach or delete all gateways or other objects that are dependent on the VPC first. For example, you must terminate all running instances, delete all VPC security groups (except the default), delete all the route tables (except the default), etc.
Parameters
-
vpc_id<~String> - The ID of the VPC you want to delete.
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘return’<~Boolean> - Returns true if the request succeeds.
23 24 25 26 27 28 29 |
# File 'lib/fog/aws/requests/compute/delete_vpc.rb', line 23 def delete_vpc(vpc_id) request( 'Action' => 'DeleteVpc', 'VpcId' => vpc_id, :parser => Fog::Parsers::Compute::AWS::DeleteVpc.new ) end |