protected void removeAddressSpace(String spaceName) {
		AddressSpace deletedSpace = spaceNameTable.remove(spaceName);
		if (deletedSpace != null) {
			spaces.remove(deletedSpace);
			spaceLookup.remove(deletedSpace.getSpaceID());
			if (deletedSpace.getType() == AddressSpace.TYPE_RAM ||
				deletedSpace.getType() == AddressSpace.TYPE_CODE) {
				memoryAddressSet.deleteRange(deletedSpace.getMinAddress(),
					deletedSpace.getMaxAddress());
			}
		}
	}
Removes the AddressSpace from this factory

@param spaceName the name of the space to remove.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/DefaultAddressFactory.java