func (d *Driver) Remove() error {
	s, err := d.GetState()
	if err != nil {
		return err
	}

	if s == state.Running {
		if err := d.Kill(); err != nil {
			return err
		}
	}

	return cmd("Hyper-V\\Remove-VM", d.MachineName, "-Force")
}
func (d *Driver) Remove() error {
	s, err := d.GetState()
	if err != nil {
		return err
	}

	if s == state.Running {
		if err := d.Kill(); err != nil {
			return err
		}
	}

	return cmd("Hyper-V\\Remove-VM", d.MachineName, "-Force")
}
func ( d * Driver ) Remove ( ) error { s , err := d . GetState ( ) if err != nil { return err } if s == state . Running { if err := d . Kill ( ) ; err != nil { return err } } return cmd ( " \\ " , d . MachineName , " " ) }
// Remove removes an host
Remove removes an host