code: func RemoveDevice(name string) error {
  	task, err := TaskCreateNamed(deviceRemove, name)
  	if task == nil {
  		return err
  	}
  
  	cookie := new(uint)
  	if err := task.setCookie(cookie, 0); err != nil {
  		return fmt.Errorf("devicemapper: Can not set cookie: %s", err)
  	}
  	defer UdevWait(cookie)
  
  	dmSawBusy = false // reset before the task is run
  	dmSawEnxio = false
  	if err = task.run(); err != nil {
  		if dmSawBusy {
  			return ErrBusy
  		}
  		if dmSawEnxio {
  			return ErrEnxio
  		}
  		return fmt.Errorf("devicemapper: Error running RemoveDevice %s", err)
  	}
  
  	return nil
  }
docs: // RemoveDevice is a useful helper for cleaning up a device.