scout/commands/wipe_database.py
def wipe(ctx):
    """Drop the mongo database given."""
    LOG.info("Running scout wipe")
    db_name = ctx.obj['mongodb']
    LOG.info("Dropping database %s", db_name)
    try:
        ctx.obj['client'].drop_database(db_name)
    except Exception as err:
        LOG.warning(err)
        ctx.abort()
    LOG.info("Dropped whole database")
def wipe(ctx):
    """Drop the mongo database given."""
    LOG.info("Running scout wipe")
    db_name = ctx.obj['mongodb']
    LOG.info("Dropping database %s", db_name)
    try:
        ctx.obj['client'].drop_database(db_name)
    except Exception as err:
        LOG.warning(err)
        ctx.abort()
    LOG.info("Dropped whole database")
Drop the mongo database given.