private void deleteBulkLoads(Configuration config, TableName tableName,
    Predicate<BulkLoad> filter) throws IOException {
    try (Connection connection = ConnectionFactory.createConnection(config);
      BackupSystemTable tbl = new BackupSystemTable(connection)) {
      List<BulkLoad> bulkLoads = tbl.readBulkloadRows(List.of(tableName));
      List<byte[]> rowsToDelete =
        bulkLoads.stream().filter(filter).map(BulkLoad::getRowKey).toList();
      tbl.deleteBulkLoadedRows(rowsToDelete);
    }
  }
Deletes all bulk load entries for the given table, matching the provided predicate.
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupMasterObserver.java