Delete hosting

				
					StructOperationResponse WebHostingDelete(string $IDsession, string $id, string $typeDelete)
				
			

Delete a hosting.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • typeDelete string
    Set to “NOW”.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingDelete($idSession, "NW1024", "NOW"); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}