public function delete($key, $section = null)
    {
        if (is_null($section)) {
            $pieces = explode('.', $key);
            $section = $pieces[0];
            $key = $pieces[1];
        }
        return $this->model->deleteSetting($section, $key);
    }
public function delete($key, $section = null)
    {
        if (is_null($section)) {
            $pieces = explode('.', $key);
            $section = $pieces[0];
            $key = $pieces[1];
        }
        return $this->model->deleteSetting($section, $key);
    }
public function delete ( $ key , $ section = null ) { if ( is_null ( $ section ) ) { $ pieces = explode ( '.' , $ key ) ; $ section = $ pieces [ 0 ] ; $ key = $ pieces [ 1 ] ; } return $ this -> model -> deleteSetting ( $ section , $ key ) ; }
Deletes a setting

@param $key
@param null|string $section
@return bool
Deletes a setting