delete flask sqlalchemy code example Example: SQLalchemy delete by id User.query.filter(User.id == 123).delete()