Deleting a DHCP Options Set
You can delete a specified DHCP options set that you no longer need. This DHCP options set must not be associated with any Net.
You cannot delete the default DHCP options set.
Deleting a DHCP Options Set Using Cockpit v2
Before you begin: Disassociate the DHCP options set from the Nets it is associated with. To do so, you can perform one of the following actions for each Net:
|
-
Click inside the DHCP Options dashboard to make checkboxes appear.
-
Check the box of the DHCP options set you want to delete.
The DHCP options set is selected and an action menu appears. -
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The DHCP options set is deleted.
Deleting a DHCP Options Set Using OSC CLI
Before you begin: Disassociate the DHCP options set from the Nets it is associated with. To do so, you can perform one of the following actions for each Net:
|
The DeleteDhcpOptions command deletes a specified DHCP options set.
Before deleting a DHCP options set, you must disassociate it from the Nets you associated it with. To do so, you need to associate with each Net a new set of DHCP options, or the default
one if you do not want to associate any DHCP options with the Net.
You cannot delete the |
$ osc-cli api DeleteDhcpOptions --profile "default" \
--DhcpOptionsSetId "dopt-12345678"
This command contains the following attributes that you need to specify:
-
DhcpOptionsSetId
: The ID of the DHCP options set you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteDhcpOptions command returns the following elements:
-
ResponseContext
: Information about the context of the response.
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting a DHCP Options Set Using AWS CLI
Before you begin: Disassociate the DHCP options set from the VPCs it is associated with. To do so, you can perform one of the following actions for each VPC:
|
To delete a DHCP options set, use the delete-dhcp-options command following this syntax:
$ aws ec2 delete-dhcp-options \
--profile YOUR_PROFILE \
--dhcp-options-id dopt-1234abcd \
--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. -
dhcp-options-id
: The ID of the DHCP options set you want to delete. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The DHCP options set is deleted.
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.