585586587588589590591592593594595
BinaryTableHDU hdu = findBinaryTableHDU(fits, CATINFO); if (hdu != null) { int rowIndex = findConfigEntryRow(hdu, name); if (rowIndex != -1) { hdu.deleteRows(rowIndex, 1); } if (hdu.getNRows() <= 1) { deleteTable(fits, CATINFO); } }