Delete database

				
					StructOperationResponse WebHostingDBDelete(string $IDsession, string $id, string $dbName)
			

Delete a database.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • dbName string
    Database name to be deleted.

An Object of type StructOperationResponse

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