Delete List

Delete Subscriber


Following almost the same pattern of deleting subscriber, you can use the API service to delete list was well. Following section will elaborate it further with a sample request and returned Json responses both successful and unsuccessful.

Required to Submit Json Request


The email that account holder uses to login MUMARA

API Token

The API token user has generated using API Configuration section of MUMARA, also mentioned above.


Method being called (Post)


Path to the API file being called ('http//


Field Details




List ID


The only required field to delete particular list is its ID.


Sample Request

The sample code in the following section has valid API token, username and path to delete the list having list ID “8”.


$postData['list_id']  = '8';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_POST, count($postData));
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'APIToken: 343b1b831066a40e308e0af92e0f06f0', 'Login:'));
$data = curl_exec($ch);
if (curl_errno($ch)) {
print "Error: " . curl_error($ch);
} else {
// Show me the result
print ($data);


Success Response


Upon providing appropriate information such as API token, username, path and valid list ID, you will get your list deleted and will be given the following response.


Status value for successfully deleted List will be- “success”
Data Returned-"List ID" 

{"status":"success","response":{"List ID":"8"}}

Erroneous Response


When you submit request with inappropriate, incorrect information.


Status value for unsuccessful submission will be-"error” 
Data Returned- Text based message describing reason of unsuccessful response
An example of error response is when you initiate the request without the list ID.

{"status":"error","response":"List ID is required to delete the list"}
Have more questions? Submit a request


Powered by Zendesk