public void clearAll(boolean clearContext, TaskMonitor monitor) {
		try {
			for (AddressRange range : program.getMemory().getAddressRanges()) {
				clearCodeUnits(range.getMinAddress(), range.getMaxAddress(), clearContext, monitor);
			}
		}
		catch (CancelledException e) {
			// nothing to do
		}
	}
Clear all code units in the program.
@param clearContext true to clear the context
@param monitor the task monitor
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeManager.java