def delete_sqlite_database(database=None, verbosity='1'):
 try:
  router = getattr(settings, 'SCREENSHOTS_ROUTER', 'default')
  db_engine = settings.DATABASES[router]['ENGINE']
  if (db_engine == settings.SQLITE3_ENGINE):
   if (not database):
    database = settings.DATABASES[router]['NAME']
   if os.path.exists(database):
    (log.info(('==> Removing database %s ...' % database)) if (int(verbosity) > 0) else None)
    os.remove(database)
    (log.info('====> Successfully removed database.') if (int(verbosity) > 0) else None)
 except Exception as exc:
  log.error(('====> EXCEPTION: %s' % exc))

def delete_sqlite_database ( database = None , verbosity = '1' ) : try : router = getattr ( settings , 'SCREENSHOTS_ROUTER' , 'default' ) db_engine = settings . DATABASES [ router ] [ 'ENGINE' ] if ( db_engine == settings . SQLITE3_ENGINE ) : if ( not database ) : database = settings . DATABASES [ router ] [ 'NAME' ] if os . path . exists ( database ) : ( log . info ( ( '==> Removing database %s ...' % database ) ) if ( int ( verbosity ) > 0 ) else None ) os . remove ( database ) ( log . info ( '====> Successfully removed database.' ) if ( int ( verbosity ) > 0 ) else None ) except Exception as exc : log . error ( ( '====> EXCEPTION: %s' % exc ) )
delete the specified sqlite database or if none .