Remove records from a Zone RRSet.
Remove records from a Zone RRSet.
If the Zone RRSet doesn't contain any records, it will automatically be deleted.
The optional records file has to be in JSON format. You can find the schema at https://docs.hetzner.cloud/reference/cloud#zone-rrset-actions-set-records-of-an-rrset
Example file content:
[ { "value": "198.51.100.1", "comment": "My web server at Hetzner Cloud." }, { "value": "198.51.100.2", "comment": "My other server at Hetzner Cloud." } ]
hcloud zone remove-records (--record <value>... | --records-file <file>) <zone> <name> <type>
-h, --help help for remove-records
--record stringArray List of records (can be specified multiple times, conflicts with --records-file)
--records-file string JSON file containing the records (conflicts with --record)
--config string Config file path (default "~/.config/hcloud/cli.toml")
--context string Currently active context
--debug Enable debug output
--debug-file string File to write debug output to
--endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1")
--hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1")
--no-experimental-warnings If true, experimental warnings are not shown
--poll-interval duration Interval at which to poll information, for example action progress (default 500ms)
--quiet If true, only print error messages
- hcloud zone - Manage DNS Zones and Zone RRSets (records)