Delete config

@param string $name
169022
public static function delete($name)
    {
        $keys = explode('.', $name);
        switch (count($keys)) {
            case 1:
                unset(self::$config[$keys[0]]);
                break;
            case 2:
                unset(self::$config[$keys[0]][$keys[1]]);
                break;
            case 3:
                unset(self::$config[$keys[0]][$keys[1]][$keys[2]]);
                break;
        }
    }
536043
private function actionDelete($name)
    {
        $forms = $this->plugin->getForms();
        $forms->delete($name);
        /** @var TAdminUI $page */
        $page = Eresus_Kernel::app()->getPage();
        HTTP::redirect($page->url());
    }
1024930
public function removeNamedRoute(string $name)
    {
        $route = $this->getNamedRoute($name);
        // no exception, route exists, now remove by id
        unset($this->routes[$route->getIdentifier()]);
    }
1111344
public function delete($name)
    {
        $command = $this->driver->factoryCommand("cookie/{$name}", WebDriver_Command::METHOD_DELETE);
        $this->driver->curl($command);
    }
19209
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
265292
public function deleteIndex($name)
    {
        $client = $this->getClient();

        $index = $client->getIndex($name);
        $index->close();
        $index->delete();
    }
1192654
public function delete($name) {

        if ( array_key_exists($name, $this->data) ) {
            unset($this->data[$name]);
            return true;
        }

        return false;

    }
217532
public function actionDelete ($name)
		{
			$class = $this->_modelClass;
			$object = $class::find()->where([ 'name' => $name ])->one();
			if ($object == null)
			{
				Console::printColor('Setting not found.', 'red');
				Yii::$app->end();
			}

			if ($this->confirm("Remove setting '" . $name . "'?"))
			{
				if ($object->delete())
					Console::printColor('Setting deleted.', 'green');
				else
					Console::printColor(current($object->getFirstErrors()), 'red');
			}
		}
961938
public function removeFilter($name)
    {
        $filters = $this->config('filters');
        unset($filters[$name]);

        $this->config('filters', $filters, false);
    }
146656
public function deleteConstant($name, $selfedit = "false") {
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}
		$this->configManager = $this->moufManager->getConfigManager();
		
		$this->configManager->unregisterConstant($name);
		
		$this->moufManager->rewriteMouf();

		// Now, let's write the constant for our environment:
		$this->constantsList = $this->configManager->getDefinedConstants();
		unset($this->constantsList[$name]);
		$this->configManager->setDefinedConstants($this->constantsList);
		
		
		header("Location: .?selfedit=".$selfedit);
	}
205839
public function delete($name) {
        if ($this->exists($name)) {
            foreach ($this->_fields as $i => $field) {
                if ($field->name === $name) {
                    unset($this->_fields[$i]);
                    break;
                }
            }
        } else throw new Exception("The '{$name}' field is not registered for this model.");
    }
1234606
public function delete(string $name): void
    {
        !$this->all && $this->inputs();

        Arrays::delete($this->input, $name);
        $this->cache = [];
    }
305147
public function delete($name)
    {
        $this->httpResponse = FigResponseCookies::remove($this->httpResponse, $name);
        //set cookie to expire 1 second after Unix Epoch
        $this->set($name, '', 1);
    }
601680
public function unregisterFunction($name) {
		if( isset($this->env->functions[$name]) )
			unset($this->env->functions[$name]);
	}
400495
public function removeProperty($name)
    {
        if ($this->properties->containsKey($name)) {
            $this->properties->remove($name);
        }
    }
219300
public function delete($name)
    {
        if (array_key_exists($name, $this->getData())) {
            $this->_db->createCommand()->delete($this->tableName, 'name = :name', [':name' => $name])->execute();
            unset($this->_data[$name]);
        }

        $this->_setCache();
    }
98701
public static function remove($name)
    {
        $model = self::find()->where([self::getNameAttribute() => $name])->one();
    
        if ($model) {
            return (bool) $model->delete();
        }
    
        return false;
    }