Delete a list (apiDeleteList)
Use this function to delete an existing subscriber list. The subscribers contained in the list are not deleted. They remain in the account and may no longer be associated with a list.
Request
| Name | Type | Example | Required | Comment |
|---|---|---|---|---|
| listID | Integer | 123456789 | apiGetList() delivers all possible List IDs. |
Error Response
| Code | Interpretation |
|---|---|
| 404 | No List ID was passed. |
PHP5 Example
try{
$request = array(
'listID'=> 123456789,
);
$response=$client->apiDeleteList($request);
}
catch (SoapFault $exception) {
echo ($exception->getMessage());
}