code: func (r *runtimeVM) DeleteContainer(c *Container) error {
  	logrus.Debug("runtimeVM.DeleteContainer() start")
  	defer logrus.Debug("runtimeVM.DeleteContainer() end")
  
  	// Lock the container
  	c.opLock.Lock()
  	defer c.opLock.Unlock()
  
  	cInfo, ok := r.ctrs[c.ID()]
  	if !ok {
  		return errors.New("Could not retrieve container information")
  	}
  
  	if err := cInfo.cio.Close(); err != nil {
  		return err
  	}
  
  	if err := r.remove(r.ctx, c.ID(), ""); err != nil {
  		return err
  	}
  
  	r.task.Shutdown(r.ctx, &task.ShutdownRequest{
  		ID: c.ID(),
  	})
  
  	delete(r.ctrs, c.ID())
  
  	return nil
  }
docs: // DeleteContainer deletes a container.