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 Virtual Private Cloud (VPC).

You cannot delete the default DHCP options set.

Deleting a DHCP Options Set Using Cockpit v1

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:

  1. Click VPC > DHCP Options.

  2. Click the DHCP options set you want to delete.
    The DHCP options set is selected.

    Multiselection is available.

  3. Click Delete .
    A confirmation dialog box appears.

  4. Click Delete to validate.
    The DHCP options set is deleted and no longer appears on the DHCP Options page.

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:

See the DeleteDhcpOptions command sample in the documentation of the OUTSCALE API.

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:

Request sample
$ 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.