You are here

function cc::delete_list in Constant Contact 7.3

Same name and namespace in other branches
  1. 6.3 class.cc.php \cc::delete_list()
  2. 6.2 class.cc.php \cc::delete_list()

Deletes a contact list.

@access public

File

./class.cc.php, line 485
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

Code

function delete_list($listid) {
  $this
    ->http_set_content_type('text/html');
  $this
    ->load_url("lists/{$listid}", 'delete', array(), 204);
  if (intval($this->http_response_code) === 204) {
    return TRUE;
  }
  return FALSE;
}