def db_clean_all(autotest_dir):
 for test in models.Test.objects.all():
  logging.info('Removing %s', test.path)
  _log_or_execute(repr(test), test.delete)
 for profiler in models.Profiler.objects.all():
  logging.info('Removing %s', profiler.name)
  _log_or_execute(repr(profiler), profiler.delete)

def db_clean_all ( autotest_dir ) : for test in models . Test . objects . all ( ) : logging . info ( 'Removing %s' , test . path ) _log_or_execute ( repr ( test ) , test . delete ) for profiler in models . Profiler . objects . all ( ) : logging . info ( 'Removing %s' , profiler . name ) _log_or_execute ( repr ( profiler ) , profiler . delete )
remove all tests from autotest_web - very destructive this function invoked when -c supplied on the command line .