Delete host

				
					StructOperationResponse hostDelete(string idSession, string host)
				
			

Delete a host at the registry.

REQUIRED


  • idSession string (32)
    Session ID.
  • host string (255)
    Hostname to be deleted.

An Object of type StructOperationResponse

  • A host can only be deleted if no domain name uses it.
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$host = "xxx.example.com"; 
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse= $clientSOAP->hostDelete($idSession, $host); 
 
      print_r($StructOperationResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
}