src/Dependency/Container.php
public function detach($key)
    {
        if (isset($this->instances[$key])) {
            unset($this->instances[$key]);
        }

        return $this;
    }
public function detach($key)
    {
        if (isset($this->instances[$key])) {
            unset($this->instances[$key]);
        }

        return $this;
    }
Detach Instance from container.
Implicit destruct the instance.

@param  string $key Key name to retrieve the instance
@return self