How can I get count of deleted rows How can I get count of deleted rows after db_delete?

db_delete('node')
  -&gt;condition('uid', 1)
  -&gt;execute();


something like 

$count = db_delete('node')
  -&gt;condition('uid', 1)
  -&gt;execute()-&gt;columnCount();


doesn't work
The delete query will return a query object for all methods except ->execute(). Methods can be chained until the query has been assembled. Execute() completes the chain.

Try:

$count = db_delete('node')
  -&gt;condition('uid', 1)
  -&gt;execute();