Delete a DHCP options group
You can delete a DHCP (Dynamic Host Configuration Protocol) options group that you no longer need. It must not be associated with any VPC (Virtual Private Cloud).
You cannot delete the default DHCP options group.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- compute.dhcpOptions.delete
Prerequisites
Before you begin
Dissociate the DHCP options group from all the VPC it is associated with. To do so, perform one of the following actions for each VPC:
- associate the VPC with another DHCP options group. For more information, see the Modify the DHCP options group associated with a VPC ↗ section;
- delete the VPC and its associated resources.
- Console
- API
- Terraform
- From the left-hand side menu, click Network → DHCP Options to access the list of DHCP options groups.
- Tick the checkbox of the DHCP options group you want to delete.
- Click the Delete button.
- In the confirmation dialog box, click Delete.
A confirmation message appears at the bottom of the page indicating that the DHCP options group has been deleted.
The DELETE /compute/spaces/{spaceId}/dhcpOptions/{id} command deletes a specified DHCP options set.
Before deleting a DHCP options set, you must dissociate it from the networks it is associated with. To do so, associate each network with a new DHCP options set or with the default set.
The Terraform documentation is available on the Numspot registry ↗.