Delete

@param string $input
@param string $name
186755
public static function delete(String $input, String $name)
    {
        switch( $input )
        {
            case 'post'     : unset($_POST[$name]);    break;
            case 'get'      : unset($_GET[$name]);     break;
            case 'env'      : unset($_ENV[$name]);     break;
            case 'server'   : unset($_SERVER[$name]);  break;
            case 'request'  : unset($_REQUEST[$name]); break;
        }
    }
44960
public function remove($name)
    {
        $removed = false;
        if ($this->has($name)) {
            unset($this->_inputs[$name]);
            $removed = true;
        }
        return $removed;
    }
1216549
public function destroy($name) {
        if (isset($this->_events[$name])) {
            unset($this->_events[$name]);
            $this->_events = array_values($this->_events);
        }
    }
232916
public static function delete($name)
    {
        !isset(self::$init) && self::init();

        setcookie(
            $name, '', $_SERVER['REQUEST_TIME'] - 3600, self::$config['path'],
            self::$config['domain'], self::$config['secure']
        );

        unset($_COOKIE[$name]);
    }
365572
public function deleteMailbox($name = '')
    {
        if (empty($name)) {
            return false;
        }

        $name = imap_utf7_encode($name);

        return imap_deletemailbox($this->conn, "{".$this->settings['server']."}INBOX.".$name);
    }
638872
public function remove($name)
    {
        $names = (array)$name;

        foreach ($names as $name) {
            if (Arr::key($name, $this->_assets)) {
                unset($this->_assets[$name]);
            }
        }
    }
829502
public function remove($name)
    {
        if (isset($this->aliasIndex[$name])) {
            $this->remove($this->aliasIndex[$name]);

            return;
        }

        if (isset($this->shortNameIndex[$name])) {
            $this->remove($this->shortNameIndex[$name]);

            return;
        }

        unset($this->commands[$name]);

        foreach ($this->shortNameIndex as $shortName => $targetName) {
            if ($name === $targetName) {
                unset($this->shortNameIndex[$shortName]);
            }
        }

        foreach ($this->aliasIndex as $alias => $targetName) {
            if ($name === $targetName) {
                unset($this->aliasIndex[$alias]);
            }
        }
    }
597454
public function removePostParameter($name)
    {
        if (!$this->hasPostParameter($name)) {
            throw new \InvalidArgumentException(sprintf('The POST request parameter "%s" does not exist.', $name));
        }

        unset($this->postParameters[rawurlencode($name)]);
    }
38218
public function remove($name = null)
    {
        $list = self::$_postTypes;
        
        unset($list[$name]);
        
        if (!$name) {
            $list = null;
        }
        
        self::$_postTypes = $list;
    }
561128
protected static function checkIfRequired($name, InputInterface $input)
    {
        if (in_array($name, self::$triggerRequired)) {
            $input->setAttribute('required');
        }
    }
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);
	}
1312045
function removeCommand($name)
    {
        unset($this->commands[$name]);
        foreach ($this->groups as $key => $commands){
            foreach ($commands as $i => $c){
                if ($c[0] == $name){
                    unset($this->groups[$key][$i]);
                }
            }
        }
    }
1137243
public static function delete($name)
    {
        unset($_COOKIE[$name]);
        return Base::getHttp()->setCookie($name, null, -86400, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httpOnly);
    }
230174
public static function delete(string $name) : void
    {
        $results = static::$_session->get("_RESULTS");

        unset($results[$name]);

        static::$_session->set("_RESULTS", $results);
    }
309427
private function removeConfig($name)
    {
        try {
            $this->configFactory->getEditable($name)->delete();
        } catch (\Exception $e) {
            throw new RuntimeException($e->getMessage());
        }
    }
402445
public static function RemovePostData ($name) {
		if (static::HasClassVar('data', $name)) {
			static::RemoveClassVar('data', $name);
		}
		if (Arrays::ExistsLowest($_POST, array_merge(['data'], (array) $name))) {
			$_POST = Arrays::RemoveLowest($_POST, array_merge(['data'], (array) $name));
		}
	}
322421
public function removeTag($name)
    {
        foreach ($this->tags as $i => $tag) {
            if (strtolower($tag->getName()) == $name) {
                unset($this->tags[$i]);
            }
        }
    }