bool clearList( string api_key, int list_id );
The key required to access the API. See Getting Started for more information.
The ID of the List to clear.
Returns true on success.
In the following example, all data is removed from List 1234567.
$api = new Api($url, 'YOURAPIKEY');
This method will also delete all associated Contact Notes.
This method may return the following error codes in addition to the standard error codes:
||Unable to Load List||
||Cannot Edit Account Lists||
||Undefined Error: Unable to clear list||An internal error occurred while the method was trying to delete all Contacts in the List.|