Merge field is deleted from the database, as well as deleted the value of field from all contacts in the list.

If this field is deleted, the information cannot be restored (!).


listMergeVarDel(string $id, string $tag) : boolean
Input parametrs
  • id - list ID
  • tag - merge field tag
Information obtained
  • true if request for deleting list has succeeded.


listMergeVarDel($id, $tag);

header("Content-Type: text/plain");
if ($api->errorCode){
	echo "Unable to load listMergeVarDel()!\n";
	echo "\tCode=".$api->errorCode."\n";
	echo "\tMsg=".$api->errorMessage."\n";
} else {
	echo "Returned: ".$retval."\n";
 new xmlrpcval($apikey),
					'id' => new xmlrpcval($listId),
					'tag' => new xmlrpcval('MERGE_TAG')
$f=new xmlrpcmsg('listMergeVarDel', array($v));
$c=new xmlrpc_client($apiUrl["path"], $apiUrl['host'], 80);
//$response = $r->serialize();

header("Content-Type: text/plain");
if(!$r->faultCode()) {
	$retval = php_xmlrpc_decode($r->value());
	echo "Returned: ".$retval."\n";
} else {
	echo "Unable to load listMergeVarDel()!\n";
	echo "\tCode=".$r->faultCode()."\n";
	echo "\tMsg=".$r->faultString()."\n";
from lib.config import * #contains apikey
from lib.MGAPI import MGAPI

# This Example shows how to ping using the MGAPI.php class and do some basic error checking.

api = MGAPI(apikey)

id = listId
tag = 'MERGE_TAG'

retval = api.listMergeVarDel(id, tag)
if api.errorCode:
	print "Unable to load listMergeVarDel()!"
	print "\tCode=", api.errorCode
	print "\tMsg=", api.errorMessage
	print "Returned: ", retval

© 2010-2020 Mailigen. All rights reserved.