Delete dns record

				
					StructOperationResponse WebhostingZoneDelete(string idSession, string domain, string subdomain, string type, string value)
				
			

Delete a DNS record into the vhost’s zonefile.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • subdomain string (255)
    Sub domain.
  • type string
    Type of DNS record.
  • value string (150)
    Value of DNS record.

An Object of type StructOperationResponse

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try
{
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");
      $StructOperationResponse = $clientSOAP->WebhostingZoneDelete($idSession, "mydomain.com", "www", "A", "192.168.0.1");
 
      print_r($StructOperationResponse);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->sessionClose($idSession);
}
?>