def remove_old_data():
 for directory in CASSANDRA_DATA_SUBDIRS:
  data_dir = '{0}/{1}/{2}'.format(APPSCALE_DATA_DIR, 'cassandra', directory)
  logging.warning('Removing data from {0}'.format(data_dir))
  try:
   subprocess.Popen('find /opt/appscale/cassandra -name "*" | grep ".db\\|.txt\\|.log" | grep -v snapshot | xargs rm', shell=True)
   logging.info('Done removing data!')
  except CalledProcessError as error:
   logging.error('Error while removing old data from db. Overwriting... Error: {0}'.format(str(error)))

def remove_old_data ( ) : for directory in CASSANDRA_DATA_SUBDIRS : data_dir = '{0}/{1}/{2}' . format ( APPSCALE_DATA_DIR , 'cassandra' , directory ) logging . warning ( 'Removing data from {0}' . format ( data_dir ) ) try : subprocess . Popen ( 'find /opt/appscale/cassandra -name "*" | grep ".db\\|.txt\\|.log" | grep -v snapshot | xargs rm' , shell = True ) logging . info ( 'Done removing data!' ) except CalledProcessError as error : logging . error ( 'Error while removing old data from db. Overwriting... Error: {0}' . format ( str ( error ) ) )
removes previous node data from the cassandra store .