code: public function detach($key)
      {
          if (isset($this->instances[$key])) {
              unset($this->instances[$key]);
          }
  
          return $this;
      }
docs: Detach Instance from container.
  Implicit destruct the instance.
  
  @param  string $key Key name to retrieve the instance
  @return self