Use the deletePolicy API to delete the entered policy.
 
########====CDP Server Configuration Start====########
#set CDP server host name
$HOST="10.230.131.25";
#set CDP server to access API
$PORT="9443";
#set CDP user
$USER="admin";
#set CDP user password
$PASS="admin";
########====CDP Server Configuration End====########
$POLICYID="bd7bfc18-dd9d-45cc-a943-310ce657a3f3";
$policy->id = $POLICYID;
#Delete the entered policy.
try{
	$client = new soapclient("https://$HOST:$PORT/Policy2?wsdl",
		array(
			'login'=>"$USER",
			'password'=>"$PASS",
			'trace'=>1,
			'cache_wsdl'=>WSDL_CACHE_NONE,
			'classmap'=>array('Policy'=>'Policy')
		)
	);
	$client->deletePolicy(array('policy'=>$policy));
	echo "Successfully executed deletePolicy\n";
	exit(0);
}
catch (SoapFault $exception)
{
	echo $exception;
	echo(1);
}
 
 
        
        
            Labels:
        
        
            
                None
            
            
                            
                    
        
        
    