def DeleteCommitInformation(rebalance):
 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 OSError:
  pass
 return True

def DeleteCommitInformation ( rebalance ) : 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 OSError : pass return True
remove file with rebalance information .