Deleting a linked zone
Delete a linked zone by using the UI, CLI, or API.
Deleting a linked zone in the console
To delete a linked zone using the UI, take the following steps:
- Navigate to the Zones section of your DNS Services instance, then select the Linked zones tab.
- Click overflow menu
of the linked zone you want to delete.
- Select Delete linked zone.
Deleting a linked zone from the CLI
To delete a linked zone using the CLI, run the following command:
ibmcloud dns cross-account linked-zone-delete LINKED_ZONE_ID [-i, --instance INSTANCE] [--output FORMAT]
Where:
- LINKED_ZONE_ID is the ID of linked zone.
- -i, --instance value is the instance name or ID. If not set, the context instance specified by
ibmcloud dns instance-target INSTANCE
is used. - --output value specifies the output format. Currently,
json
is the only supported format.
Deleting a linked zone with the API
To delete a linked zone using the API, follow these steps:
-
Set up your API environment with the correct variables.
-
Store the following values in variables to be used in the API command:
INSTANCE_ID
, which is the unique identifier of a service instance.LINKED_DNSZONE_ID
which is the unique identifier of a linked zone.IAM_TOKEN
, which is the IAM authorization token.
-
When all variables are initiated, delete the linked zone:
curl -X DELETE \ https://api.dns-svcs.cloud.ibm.com/v1/instances/$INSTANCE_ID/linked_dnszones/$LINKED_DNSZONE_ID \ -H "Authorization: $IAM_TOKEN"