def DeleteCommitInformation(rebalance):
  """Remove file with rebalance information."""
  loc = data_store.DB.Location()
  if not os.path.exists(loc):
    return False
  if not os.path.isdir(loc):
    return False
  tempdir = _GetTransactionDirectory(loc, rebalance.id)
  tempfile = utils.JoinPath(tempdir, constants.TRANSACTION_FILENAME)
  try:
    os.unlink(tempfile)
  except __HOLE__:
    pass
  return True
dataset/ETHPy150Open google/grr/grr/server/data_server/rebalance.py/DeleteCommitInformation