BookStack\Services\SettingService::remove PHP Method

remove() public method

Removes a setting from the database.
public remove ( $key ) : boolean
$key
return boolean
    public function remove($key)
    {
        $setting = $this->getSettingObjectByKey($key);
        if ($setting) {
            $setting->delete();
        }
        $this->clearFromCache($key);
        return true;
    }