title: How to remove A record in DNS zone in WHM/cPanel using their API with PHP
body: <p>I am trying to remove an A record in a domain's zone using the WHM API or cPanel API with PHP. I came across this <a href="https://documentation.cpanel.net/display/SDK/cPanel+API+2+Functions+-+ZoneEdit%3A%3Aremove_zone_record" rel="nofollow">API call</a> but it needs a line number for that record, How do I get this line number without having to go and check the zone manually, but using PHP. </p>
  
  <p>Thank for the help. </p>