How do I use linode-cli to delete a domain "A" record?

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

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:

Linode CLI - Domains

The command you can use to delete a subdomain is as follows:

linode-cli domains records-delete $domainID $recordID

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct