code: func (f FileManager) DeleteDatastoreFile(ctx context.Context, name string, dc *Datacenter) (*Task, error) {
  	req := types.DeleteDatastoreFile_Task{
  		This: f.Reference(),
  		Name: name,
  	}
  
  	if dc != nil {
  		ref := dc.Reference()
  		req.Datacenter = &ref
  	}
  
  	res, err := methods.DeleteDatastoreFile_Task(ctx, f.c, &req)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewTask(f.c, res.Returnval), nil
  }
docs: // DeleteDatastoreFile deletes the specified file or folder from the datastore.