public void clearData(Set<Long> dataTypeIDs, TaskMonitor monitor) throws CancelledException {
		lock.acquire();
		try {
			List<Address> toClear = new ArrayList<>();
			RecordIterator it = dataAdapter.getRecords();
			while (it.hasNext()) {
				monitor.checkCancelled();
				DBRecord rec = it.next();
				long id = rec.getLongValue(DataDBAdapter.DATA_TYPE_ID_COL);
				if (dataTypeIDs.contains(id)) {
					toClear.add(addrMap.decodeAddress(rec.getKey()));
				}
			}

			for (Address addr : toClear) {
				monitor.checkCancelled();
				clearCodeUnits(addr, addr, false, monitor);
			}
		}
		catch (IOException e) {
			dbError(e);
		}
		finally {
			lock.release();
		}
	}
Removes any data objects that have dataTypes matching the given dataType ids.
@param dataTypeIDs the set of {@link DataType} IDs that have been deleted.
@param monitor the task monitor.
@throws CancelledException if cancelled
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeManager.java