function testSinglePlan_Delete() {
  assertEquals(0, cache.getCount());

  var queryTask = new lf.proc.UserQueryTask(
      hr.db.getGlobal(), [getSampleQuery()]);
  return queryTask.exec().then(function() {
    assertEquals(ROW_COUNT, cache.getCount());
    var query = /** @type {!lf.query.DeleteBuilder} */ (
        db.delete().from(j)).getTaskItem();
    var deleteQueryTask = new lf.proc.UserQueryTask(
        hr.db.getGlobal(), [query]);
    return deleteQueryTask.exec();
  }).then(function() {
    return lf.testing.util.selectAll(global, j);
  }).then(function(results) {
    assertEquals(0, results.length);
    assertEquals(0, cache.getCount());
  });
}
Tests that an DELETE query does delete the record in the database and cache.
@return {!IThenable}