title: How to delete a record by id in Flask-SQLAlchemy
body: <p>I have <code>users</code> table in my MySql database. This table has <code>id</code>, <code>name</code> and <code>age</code> fields.</p>
  
  <p>How can I delete some record by <code>id</code>?</p>
  
  <p>Now I use the following code:</p>
  
  <pre><code>user = User.query.get(id)
  db.session.delete(user)
  db.session.commit()
  </code></pre>
  
  <p>But I don't want to make any query before delete operation. Is there any way to do this? I know, I can use <code>db.engine.execute("delete from users where id=...")</code>, but I would like to use <code>delete()</code> method.</p>