def remove_model_from_db(model_id): from database import remove_model return { 'success': remove_model(model_id) }
def remove(args): import models.bio as bio_models for model_name in args.models: model = getattr(bio_models, model_name) remove_model(model) db.session.commit()
def remove(self, **kwargs): """Do not overwrite this function""" remove_model(self.model, self.raw_delete_all, self.restart_autoincrement)