def delete(self):
        db.session.delete(self)
        return db.session.commit()
Delete a model instance.
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/lib/util_sqlalchemy.py/ResourceMixin.delete