scout/commands/delete/delete_command.py
def index(context):
    """Delete all indexes in the database"""
    LOG.info("Running scout delete index")
    adapter = context.obj['adapter']
    
    for collection in adapter.db.collection_names():
        adapter.db[collection].drop_indexes()
    LOG.info("All indexes deleted")
def index(context):
    """Delete all indexes in the database"""
    LOG.info("Running scout delete index")
    adapter = context.obj['adapter']
    
    for collection in adapter.db.collection_names():
        adapter.db[collection].drop_indexes()
    LOG.info("All indexes deleted")
Delete all indexes in the database