public final void clearListing(AddressSetView set) throws CancelledException {
		AddressRangeIterator iter = set.getAddressRanges();
		while (iter.hasNext()) {
			if (monitor.isCancelled()) {
				break;
			}
			AddressRange range = iter.next();
			clearListing(range.getMinAddress(), range.getMaxAddress());
		}
	}
Clears the code units (instructions or data) in the specified set
@param set the set to clear
@throws CancelledException if cancelled
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java