code: public function channelDelete($cid, $force = false)
      {
          $this->execute("channeldelete", array("cid" => $cid, "force" => $force));
          $this->channelListReset();
  
          if (($cid instanceof AbstractNode ? $cid->getId() : $cid) == $this->whoamiGet(
                  "client_channel_id"
              )
          ) {
              $this->getParent()->whoamiReset();
          }
      }
docs: Deletes the channel specified by $cid.
  
  @param  integer $cid
  @param  boolean $force
  @return void