def _RemoveFileCommand(filename):
  """Returns a command list to remove a directory (or file) using Python."""
  # Use / instead of \ in paths to avoid issues with escaping.
  return ['python', '-c',
          'from common import chromium_utils; '
          'chromium_utils.RemoveFile("%s")' % filename.replace('\\', '/')]