@Override
	public void dataTypeRemoved(DataTypeManager dataTypeManager, DataTypePath path) {

		if (dataTypeManager != originalDTM) {
			throw new AssertException("Listener only supports original DTM");
		}
		if (!isLoaded()) {
			return;
		}

		DataType dataType = viewDTM.getDataType(path.getCategoryPath(), path.getDataTypeName());
		if (dataType == null || !viewDTM.isViewDataTypeFromOriginalDTM(dataType)) {
			return;
		}

		OffsetPairs offsetSelection = getRelOffsetSelection();
		viewDTM.remove(dataType);
		fireTableDataChanged();
		componentDataChanged();
		setRelOffsetSelection(offsetSelection);
	}
Adds the specified data type at the specified component index. Whether
an insert or replace occurs depends on whether the indicated index is
in a selection and whether in locked or unlocked mode.

@param index the component index of where to add the data type.
@param dt the data type to add

@return true if the component is added, false if it doesn't.
@throws UsrException if add fails
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/stackeditor/StackEditorModel.java