Deleting a Virtual Gateway
You can delete a virtual gateway that is no longer linked to a Net.
This action updates the state of the virtual gateway from available
to deleted
.
Deleting a Virtual Gateway Using Cockpit v2
Before you begin: Unlink the virtual gateway from the Net it is linked to, if any. For more information, see Unlinking a Virtual Gateway. |
-
Click inside the Virtual Gateways dashboard to make checkboxes appear.
-
Check the box of the virtual gateway you want to delete.
The virtual gateway is selected and an action menu appears. -
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The virtual gateway is deleted.Deleted resources remain visible for 1 hour.
Deleting a Virtual Gateway Using OSC CLI
Before you begin: Unlink the virtual gateway from the Net it is linked to, if any. For more information, see Unlinking a Virtual Gateway. |
The DeleteVirtualGateway command deletes a specified virtual gateway.
Before deleting a virtual gateway, we recommend to detach it from the Net and delete the VPN connection.
$ osc-cli api DeleteVirtualGateway --profile "default" \
--VirtualGatewayId "vgw-12345678"
This command contains the following attributes that you need to specify:
-
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
VirtualGatewayId
: The ID of the virtual gateway you want to delete.
The DeleteVirtualGateway command returns the following elements:
-
ResponseContext
: Information about the context of the response.
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting a Virtual Private Gateway Using AWS CLI
Before you begin: Detach the virtual private gateway from the VPC it is attached to, if any. For more information, see Unlinking a Virtual Gateway. |
To delete a virtual private gateway, use the delete-vpn-gateway command following this syntax:
$ aws ec2 delete-vpn-gateway \
--profile YOUR_PROFILE \
--vpn-gateway-id vgw-072c84ed \
--endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
vpn-gateway-id
: The ID of the virtual private gateway you want to delete. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The specified virtual private gateway is deleted.
Deleted resources remain visible for 1 hour. |
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.