You are here

function MCAPI::listStaticSegmentDelMembers in Mailchimp 6.2

Remove list members from a static segment. It is suggested that you limit batch size to no more than 10,000 addresses per call. Email addresses must exist on the list in order to be removed - this <strong>will not</strong> remove unsubscribe them from the list!

Related

@returnf int success the total number of succesful updates (will include members already in the segment) @returnf array errors the email address, an error code, and a message explaining why they couldn't be added

Parameters

string $id the list id to connect to. Get by calling lists():

int $seg_id the id of the static segment to delete - get from listStaticSegments():

array $batch an array of email addresses and/or unique_ids to remove from the segment:

Return value

array an array with the results of the operation

File

./MCAPI.class.php, line 1420

Class

MCAPI

Code

function listStaticSegmentDelMembers($id, $seg_id, $batch) {
  $params = array();
  $params["id"] = $id;
  $params["seg_id"] = $seg_id;
  $params["batch"] = $batch;
  return $this
    ->callServer("listStaticSegmentDelMembers", $params);
}