public function deleteByKey($key, $group = null) {
        $query = $this->model
            ->where('key', $key);

        if(! is_null($group))
            $query->where('group', $group);

        $setting = $query
            ->first();

        if( isset($setting->id) )
            $setting->delete();

        return $this;
    }