code: func (w Wait) IsDeleted(event watch.Event) (bool, error) {
  	switch event.Type {
  	case watch.Error:
  		// keep waiting in the event we see an error - we expect the watch to be closed by
  		// the server if the error is unrecoverable.
  		err := apierrors.FromObject(event.Object)
  		fmt.Fprintf(w.errOut, "error: An error occurred while waiting for the object to be deleted: %v", err)
  		return false, nil
  	case watch.Deleted:
  		return true, nil
  	default:
  		return false, nil
  	}
  }
docs: // IsDeleted returns true if the object is deleted. It prints any errors it encounters.