src/Container.php
public function delete($id)
    {
        if (!empty($this->locks[$id])) {
            throw new ContainerException("Cannot delete locked key {$id}");
        }
        if (is_object($this->definitions[$id])) {
            unset($this->factories[$this->definitions[$id]]);
        }
        unset($this->definitions[$id], $this->objects[$id], $this->calcs[$id]);
    }
public function delete($id)
    {
        if (!empty($this->locks[$id])) {
            throw new ContainerException("Cannot delete locked key {$id}");
        }
        if (is_object($this->definitions[$id])) {
            unset($this->factories[$this->definitions[$id]]);
        }
        unset($this->definitions[$id], $this->objects[$id], $this->calcs[$id]);
    }
Unsets a parameter or an object.

@param string $id

@return void