def query_delete (&block)

      q = prepare_query(&block)
      rs = q.delete

      return rs

    ensure
      q && q.free
    end
def query_delete (&block)

      q = prepare_query(&block)
      rs = q.delete

      return rs

    ensure
      q && q.free
    end
Prepares a query and then runs it and deletes all the results.