code: func (d deleteOnClose) Close(ctx context.Context, corrupt bool) (err error) {
  	name := d.File.Name()
  	defer func() {
  		if rmErr := os.Remove(name); err == nil && rmErr != nil && !os.IsNotExist(rmErr) {
  			err = rmErr
  		}
  	}()
  	return d.File.Close()
  }
docs: // Close closes the underlying file and then deletes it.