def sql_destroy_indexes(app, style, connection):
 output = []
 for model in models.get_models(app, include_auto_created=True):
  output.extend(connection.creation.sql_destroy_indexes_for_model(model, style))
 return output

def sql_destroy_indexes ( app , style , connection ) : output = [ ] for model in models . get_models ( app , include_auto_created = True ) : output . extend ( connection . creation . sql_destroy_indexes_for_model ( model , style ) ) return output
returns a list of the drop index sql statements for all models in the given app .