drivers/google/google.go
func (d *Driver) Remove() error {
	c, err := newComputeUtil(d)
	if err != nil {
		return err
	}

	if err := c.deleteInstance(); err != nil {
		if isNotFound(err) {
			log.Warn("Remote instance does not exist, proceeding with removing local reference")
		} else {
			return err
		}
	}

	if err := c.deleteDisk(); err != nil {
		if isNotFound(err) {
			log.Warn("Remote disk does not exist, proceeding")
		} else {
			return err
		}
	}

	return nil
}
func (d *Driver) Remove() error {
	c, err := newComputeUtil(d)
	if err != nil {
		return err
	}

	if err := c.deleteInstance(); err != nil {
		if isNotFound(err) {
			log.Warn("Remote instance does not exist, proceeding with removing local reference")
		} else {
			return err
		}
	}

	if err := c.deleteDisk(); err != nil {
		if isNotFound(err) {
			log.Warn("Remote disk does not exist, proceeding")
		} else {
			return err
		}
	}

	return nil
}
func ( d * Driver ) Remove ( ) error { c , err := newComputeUtil ( d ) if err != nil { return err } if err := c . deleteInstance ( ) ; err != nil { if isNotFound ( err ) { log . Warn ( " " ) } else { return err } } if err := c . deleteDisk ( ) ; err != nil { if isNotFound ( err ) { log . Warn ( " " ) } else { return err } } return nil }
// Remove deletes the GCE instance and the disk.
Remove deletes the GCE instance and the disk .