Remove an asset from the collection

@param string $name The name of the asset you want to remove
@return void
552313
public function remove($name)
    {
        if (!isset($this->indexed[$name])) {
            return;
        }
        unset($this->indexed[$name]);

        foreach ($this->items as $i => $v) {
            if ($v === $name) {
                unset($this->items[$i]);
            }
        }
    }
28008
protected function removeHeader(string $name)
    {
        $normalized = strtolower($name);

        if (isset($this->headerNameMap[$normalized])) {
            $name = $this->headerNameMap[$normalized];
            unset($this->headers[$name], $this->headerNameMap[$normalized]);
        }
    }
777831
public static function delete($name)
    {
        empty(self::$init) && self::init();

        $session = self::get($name);
        if (is_string($session)) {
            unset($_SESSION[$name]);
        }

        if (is_array($session)) {
            $_SESSION[$name] = [];
        }
        return true;
    }
10551
public function removeAction($name)
    {

        if (isset($this->actions[$name])) {
            unset($this->actions[$name]);
        }

        return $this;
    }
1030810
public function remove(string $name) : bool
    {
        $key = $this->makeCacheKey($name);
        
        $this->cache->forget($key);
        
        unset($this->jobs[$name]);
    }
714734
public static function clear($name): void
    {
        if (static::$immutable) {
            return;
        }

        if (\function_exists('\\putenv')) {
            \putenv($name);
        }

        unset($_ENV[$name], $_SERVER[$name]);
    }
477099
public function deleteObject($name)
    {
        if (is_object($name) && $name instanceof Object) {
            $name = $name->getName();
        }

        $this->connection->makeRequest(Client::DELETE, array($this->name, $name));
    }
477127
public function disableVendor($name)
    {
        if (array_key_exists($name, $this->cssVendors)) {
            unset($this->cssVendors[$name]);
        }
        if (array_key_exists($name, $this->jsVendors)) {
            unset($this->jsVendors[$name]);
        }
    }
211062
public static function RemovePost ($name) {
		if (static::HasClassVar('_post', $name)) {
			static::RemoveClassVar('_post', $name);
		}
		if (Arrays::ExistsLowest($_POST, $name)) {
			Arrays::RemoveLowest($_POST, $name);
		}
	}
518573
public function remove($name)
    {
        $this->requireNames();
        
        $lower = strtolower($name);
        if(array_key_exists($lower, $this->names)) {
            $name = $this->names[$lower];
            unset($this->names[$lower]);
            unset($this->headers[$name]);
        }
    }
19209
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
961720
public function forget($name = '')
    {

        $filePath = FacadeMigration::createName($name);
        if ($this->file->exists($filePath)) {
            $this->file->delete($filePath);
            $this->info(sprintf('%s migration succesfully removed in %s', $name, $filePath));
        } else {
            $this->error(sprintf('%s migration could not removed in %s, file not exists', $name,
                $filePath));
        }
    }
349893
public function Delete($Name) {
      $Parsed = $this->Parse($Name);

      // Throw an event so that plugins that have stored the file somewhere else can delete it.
      $this->EventArguments['Parsed'] =& $Parsed;
      $Handled = FALSE;
      $this->EventArguments['Handled'] =& $Handled;
      $this->FireAs('Gdn_Upload')->FireEvent('Delete');

      if (!$Handled) {
         $Path = PATH_UPLOADS.'/'.ltrim($Name, '/');
         @unlink($Path);
      }
   }
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.");
    }
280136
function disable(string $name) {
        $pos = array_search($name, $this->_enableList);
        if ($pos === false)
            return;
        unset($this->_enableList[$pos]);
    }
614186
public function remove($name)
    {
        $this->_validate();
        if (!$this->isLocked()) {
            if (!$this->get($name)) {
                return true;
            }
            unset($_SESSION[$this->publicStorage]['store'][$this->_namespaceName][$name]);
            return true;
        }
        return false;
    }
893766
public function delete($name)
    {
        if ($this->check($name)) {
            $this->_overwrite($_SESSION, Hash::remove($_SESSION, $name));
        }
    }