code: static int deleteAll(CallInfo callInfo, Table table, String where, Object... args) {
      final DB db = table.getDB();
  
      return  db.access(callInfo, () -> {
        table.setDirtyStatus(true);
        String sql = 
            DELETE_FROM_ + table.getName() +
            WHERE_ + where;
        db.logSetup(callInfo, sql);
        try (WrappedStatement ws = db.compile(sql)) {
          PreparedStatement deleteStmt = ws.getStatement();
          if (args != null && args.length > 0) {
            for (int i=0; i < args.length; i++) {
              deleteStmt.setObject(i + 1, args[i]);
            }
          }
          return deleteStmt.executeUpdate(); 
        }
      });
    }
docs: Delete all data based on a WHERE clause.
  @param callInfo Call info.
  @param table Table.
  @param where <code>WHERE</code> clause.
  @param args Optional arguments for <code>WHERE</code> clause.
  @return The number of deleted rows.