Delete a list and its members.


Parameter

Description

Required

list_idList IDYES


Example: Delete a contact list


curl https://api.transmitsms.com/remove-list.json \
  -u 2e24c1cbdd987221e165d543f34b84bf:secret \
  -d list_id=30


JSON Response

{    
  error: {
    code: "SUCCESS",
    description: "OK"
  }
}

XML Response

<?xmlversion="1.0"encoding="UTF-8"?>
<response>
  <error>
    <code>SUCCESS</code>
    <description>OK</description>
  </error>
</response>


PHP Examples


<?php
  include '../../APIClient2.php';

  $api = new transmitsmsAPI('API_KEY', 'API_SECRET');
  $result = $api->removeList(6191);

  echo "Error: {$result->error->description}".PHP_EOL;