How do I use linode-cli to delete a domain "A" record?
Linode
Linode Staff
I have a lot of obsolete subdomains I'd like to nuke… so I'd like to do it programatically. Experimentally, it appears that "linode-cli domains delete $domain_id" is applicable only to top-level domains.
1 Reply
rgerke
Linode Staff
With the Linode CLI, you can both remove domains and DNS records.
This section of our guide goes over the different CLI commands you can use in conjunction with domains:
The command you can use to delete a subdomain is as follows:
linode-cli domains records-delete $domainID $recordID