private void remove() {
		int[] selectedRows = pathTable.getSelectedRows();
		if (selectedRows == null) {
			return;
		}
		pathModel.remove(selectedRows);

		// select the next row based on what was selected
		Arrays.sort(selectedRows);
		int row = selectedRows[selectedRows.length - 1] + 1 - selectedRows.length;
		int count = pathModel.getRowCount();
		if (row >= count) {
			row = count - 1;
		}
		if (row >= 0) {
			pathTable.setRowSelectionInterval(row, row);
		}
		updateButtonsEnabled();
	}
Clear the paths in the table.
Ghidra/Framework/Docking/src/main/java/docking/widgets/pathmanager/PathManager.java