Skip to main content

Delete a zone record for a domain using WHM API

Comments

1 comment

  • DavidN.
    Hi Srikanth, You can use ZoneEdit::fetchzone_records to obtain a data structure representing the zone file you're modifying. Every record returned by that call will have its line number associated with it. Keep in mind that if you delete multiple records, line numbers may change because records above that line were removed, so make sure you either remove records from the bottom up, or use fetchzone_records again after every record removal. David Nielson cPanel developer
    0

Please sign in to leave a comment.