add flush in batch delete, add debug.java