public synchronized void delete(long key) {
		processQueue();
		KeyedSoftReference<T> ref = map.get(key);
		if (ref != null) {
			T obj = ref.get();
			if (obj != null) {
				obj.setDeleted();
				ref.clear();
			}
			map.remove(key);
		}
	}
Removes the object with the given key from the cache.
@param key the key of the object to remove.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DBObjectCache.java