/** * Public function that deletes a list from the account * * @param object $list - a valid list object with a valid lists link * @return string $code - returns success or fail code from API server */ public function deleteList($list) { $utility = new CTCTUtility(); $call = $utility->getApiPath() . $list->getLink(); $return = $utility->httpDelete($call); $code = $return['info']['http_code']; return code; }