Closed wshihadeh closed 3 years ago
Cloudflare.connect(token: CLOUDFLARE_API_TOKEN) do |connection|
zone = connection.zones.find_by_name(TLD_DOMAIN)
record = zone.dns_records.find_by_name(name)
record.delete
end
Thanks, @sirwolfgang! Good example, looks solid to me.
@ioquatix Would that example feel out of place in the Usage section of the Readme? Is it too much? I suggested linking to the underlying Cloudflare ReST API in an Issue here, to let users explore that way.
@olleolleolle feel free to update the documentation.
is there a way to delete a DNS record?