Deleting an Internet Service
You can delete an internet gateway that you no longer need.
Deleting an Internet Service Using Cockpit v2
Before you begin: Unlink the internet service from the Net. For more information, see Detaching an Internet Service from a Net. |
-
In the Internet Services dashboard, check the box of the internet service you want to delete.
The internet service is selected. -
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The internet service is deleted.
Deleting an Internet Service Using OSC CLI
Before you begin: Unlink the internet service from the Net. For more information, see Detaching an Internet Service from a Net. |
The DeleteInternetService command deletes an internet service.
Before deleting an internet service, you must detach it from any Net it is attached to.
$ osc-cli api DeleteInternetService --profile "default" \
--InternetServiceId "igw-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. -
InternetServiceId
: The ID of the internet service you want to delete.
The DeleteInternetService command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting an Internet Service Using oapi-cli
Before you begin: Unlink the Internet service from the Net. For more information, see Detaching an Internet Service from a Net. |
The DeleteInternetService command deletes an internet service.
Before deleting an internet service, you must detach it from any Net it is attached to.
$ oapi-cli --profile "default" DeleteInternetService \
--InternetServiceId "igw-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. -
InternetServiceId
: The ID of the internet service you want to delete.
The DeleteInternetService command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting an Internet Gateway Using AWS CLI
Before you begin:
|
To delete an internet gateway, use the delete-internet-gateway command following this syntax:
$ aws ec2 delete-internet-gateway \
--profile YOUR_PROFILE \
--internet-gateway-id igw-12345678 \
--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. -
internet-gateway-id
: The ID of the internet gateway. -
endpoint
: The endpoint corresponding to the Region you want to send the request to. For more information, see Installing and Configuring AWS CLI.
The internet gateway is deleted.
Related Page
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.