code: func (m *cgroupManagerImpl) Destroy(cgroupConfig *CgroupConfig) error {
  	start := time.Now()
  	defer func() {
  		metrics.CgroupManagerDuration.WithLabelValues("destroy").Observe(metrics.SinceInSeconds(start))
  		metrics.DeprecatedCgroupManagerLatency.WithLabelValues("destroy").Observe(metrics.SinceInMicroseconds(start))
  	}()
  
  	cgroupPaths := m.buildCgroupPaths(cgroupConfig.Name)
  
  	libcontainerCgroupConfig := &libcontainerconfigs.Cgroup{}
  	// libcontainer consumes a different field and expects a different syntax
  	// depending on the cgroup driver in use, so we need this conditional here.
  	if m.adapter.cgroupManagerType == libcontainerSystemd {
  		updateSystemdCgroupInfo(libcontainerCgroupConfig, cgroupConfig.Name)
  	} else {
  		libcontainerCgroupConfig.Path = cgroupConfig.Name.ToCgroupfs()
  	}
  
  	manager, err := m.adapter.newManager(libcontainerCgroupConfig, cgroupPaths)
  	if err != nil {
  		return err
  	}
  
  	// Delete cgroups using libcontainers Managers Destroy() method
  	if err = manager.Destroy(); err != nil {
  		return fmt.Errorf("Unable to destroy cgroup paths for cgroup %v : %v", cgroupConfig.Name, err)
  	}
  
  	return nil
  }
docs: // Destroy destroys the specified cgroup