Remove before script or style have been registered.

@since 1.0.1

@param string $type → script|style
@param string $name → script or style name

@return bool true
429570
public static function remove($type, $name)
    {
        if (isset(self::$data[$type]['header'][$name])) {
            unset(self::$data[$type]['header'][$name]);

            return true;
        } elseif (isset(self::$data[$type]['footer'][$name])) {
            unset(self::$data[$type]['footer'][$name]);

            return true;
        }

        return false;
    }
1304777
public function removeField($name)
    {
        if (($field = $this->getField($name)) === null) {
            return false;
        }

        foreach ($field->getAliases() as $alias) {
            unset($this->fieldAliases[$alias]);
        }
        unset($this->fields[$name]);
        return true;
    }
1344060
public static function remove($name)
    {
        exception_if(!static::exists($name), SessionKeyNotFoundException::class, $name);
        //
        static::$register[$name] = null;

        static::save();

        return true;
    }
943181
public function unregisterModule($name)
    {
        if (array_key_exists($name, $this->modules)) {
            unset($this->modules[$name]);
            return true;
        }
        return false;
    }
1293168
public static function remove($name)
    {
        if (Helpers\Data::table($name)->remove() && Helpers\Config::table($name)->remove())
        {
            return TRUE;
        }

        return FALSE;
    }
98810
private function ignoreItem($type, $name, $ignore)
    {
        if ($type == 'file' && in_array(pathinfo($name, PATHINFO_EXTENSION), $ignore)) {
            return true;
        } elseif ($type == 'dir' && in_array($name, $ignore)) {
            return true;
        }
        return false;
    }
707226
public function delete($name, $type = '')
    {
        $legacyKernel = Eresus_Kernel::app()->getLegacyKernel();
        $filename = $legacyKernel->froot . 'templates/';
        if ($type)
        {
            $filename .= "$type/";
        }
        $filename .= "$name.html";
        $result = filedelete($filename);
        return $result;
    }
572162
protected static function write_revert($name, $type, $file)
	{
		// remove the migration just run
		\DB::delete(static::$table)
			->where('name', $name)
			->where('type', $type)
			->where('migration', $file)
		->execute(static::$connection);

		// remove the file from the list of run migrations
		if (($key = array_search($file, static::$migrations[$type][$name])) !== false)
		{
			unset(static::$migrations[$type][$name][$key]);
		}

		// make sure the migrations are in the correct order
		sort(static::$migrations[$type][$name]);

		// and save the update to the config file
		\Config::set('migrations.version.'.$type.'.'.$name, static::$migrations[$type][$name]);
		\Config::save(\Fuel::$env.DS.'migrations', 'migrations');
	}
448838
private function removeServices($name, $address, $type)
    {
        switch ($type) {
            case "tcp":
                $migrate = $this->tcp_services[$name][$address]->destroy();
                unset($this->tcp_services[$name][$address]);
                break;
            case "http":
                $migrate = $this->http_services[$name][$address]->destroy();
                unset($this->http_services[$name][$address]);
                break;
        }
        return $migrate;
    }
1030810
public function remove(string $name) : bool
    {
        $key = $this->makeCacheKey($name);
        
        $this->cache->forget($key);
        
        unset($this->jobs[$name]);
    }
52201
public function removeListener($name)
    {
        $listeners = $this->getConfig('listeners');
        if (!array_key_exists($name, $listeners)) {
            return false;
        }

        if (isset($this->_listenerInstances[$name])) {
            $this->_eventManager->off($this->_listenerInstances[$name]);
            unset($this->_listenerInstances[$name]);
        }

        unset($listeners[$name]);
        $this->_config['listeners'] = $listeners;
    }
1233450
public static function autoDelete(string $name, Type $type): self
    {
        $self = new self($name, $type);
        $self->autoDelete = true;
        $self->durable = false;

        return $self;
    }
1221273
public function except($name, $type = 'param')
    {
        $param = $this->$type();
        if (is_string($name)) {
            $name = explode(',', $name);
        }
        foreach ($name as $key) {
            if (isset($param[$key])) {
                unset($param[$key]);
            }
        }
        return $param;
    }
727569
public function deleteType($type)
    {
        $contents = $this->contentType->findBy(array('type' => $type));

        foreach ($contents as $content) {
            $this->deleteContent($content->getContent());
        }

        $this->manager->remove($type);
        $this->manager->flush();
    }
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;
    }
755456
public function removeMigrationFile($name, $type)
    {
        $class_name = $this->getMigrationName($type, $name);

        $removed = false;
        $migration_file = $this->getMigrationPath().$class_name.'.php';
        if (file_exists($migration_file)) {
            if (unlink($migration_file)) {
                $removed = true;
                $migration = $this->modx->getObject($this->blend_class_object, ['name' => $class_name]);
                if (is_object($migration) && $migration->remove()) {
                    $this->out($class_name.' migration has been removed from the blend_migrations table', Blender::VERBOSITY_VERY_VERBOSE);

                }
            } else {
                $this->outError($class_name.' migration has not been removed from the blend_migrations table');
            }

        } else {
            $this->outError($this->getMigrationPath().$class_name.'.php migration could not be found to remove');
        }

        return $removed;
    }
439843
public function remove($name)
    {
        if (isset($this->{$name}))
        {
            unset($this->object[$name]);

            return true;
        }

        return false;
    }