def clear_old_snapshots():
 logging.info('Removing old Cassandra snapshots...')
 try:
  subprocess.check_call([NODE_TOOL, 'clearsnapshot'])
 except CalledProcessError as error:
  logging.error('Error while deleting old Cassandra snapshots. Error: {0}'.format(str(error)))

def clear_old_snapshots ( ) : logging . info ( 'Removing old Cassandra snapshots...' ) try : subprocess . check_call ( [ NODE_TOOL , 'clearsnapshot' ] ) except CalledProcessError as error : logging . error ( 'Error while deleting old Cassandra snapshots. Error: {0}' . format ( str ( error ) ) )
remove any old snapshots to minimize disk space usage locally .