def _drop_index(engine, table, idx_name):
 for idx in getattr(table, 'indexes'):
  if (idx.name == idx_name):
   break
 else:
  raise Exception(("Index '%s' not found!" % idx_name))
 idx.drop(engine)
 table.indexes.remove(idx)

def _drop_index ( engine , table , idx_name ) : for idx in getattr ( table , 'indexes' ) : if ( idx . name == idx_name ) : break else : raise Exception ( ( "Index '%s' not found!" % idx_name ) ) idx . drop ( engine ) table . indexes . remove ( idx )
drop index from db and remove index from sqlalchemy table metadata .