Delete protected directory

				
					StructOperationResponse WebHostingProtectedDirRemove(string $IDsession, string $id, string $fqdn, string $pathSecured)
			

Delete a protected directory.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • fqdn string
    fqdn of the vhost.
  • pathSecured string
    Path of the protected directory to be deleted.

An Object of type StructOperationResponse

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