SQL Alchemy - How to Delete from a model instance?

Viewed 15857

Say I get a model instance like this:

instance = session.query(MyModel).filter_by(id=1).first()

How can I delete that row? Is there a special method to call?

2 Answers
Related