Back to Documentation Overview

listMergeVarDel

public static listMergeVarDel(string apikey, string id, string tag)

Delete a merge tag from a given list and all its members. Seriously - the data is removed from all members as well! Note that on large lists this method may seem a bit slower than calls you typically make.

Section:
List Related
Parameters:
apikey a valid API Key for your user account. Get by visiting your API dashboard
id the list id to connect to. Get by calling lists()
tag The merge tag to delete
Returns:
bool   -  true if the request succeeds, otherwise an error will be thrown

Examples (1)

download example code

[1] xml-rpc_listMergeVarDel.php

  1. <?php
  2. /**
  3. This Example shows how to add an Merge Variable to a list using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.inc.php';
  8. try {
  9. $client = XML_RPC2_Client::create($apiUrl);
  10.  
  11. $result = $client->listMergeVarDel($apikey, $listId, 'TEST');
  12. echo "SUCCESS! \n";
  13. echo "Returned: $result\n";
  14. } catch (XML_RPC2_FaultException $e){
  15. echo "ERROR!!!!\n";
  16. echo $e->getFaultCode()." : ".$e->getFaultString()."\n";
  17. }
  18.  
Add New Note User Contributed Notes for listMergeVarDel
No notes, yet... Will you be the first??