views:

20

answers:

1

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?

A: 

Ok I found it after further searching:

session.delete(instance)
Greg