public boolean removeTree(String treeName) {
		lock.acquire();
		try {
			if (treeMap.containsKey(treeName)) {
				DBRecord rec = treeAdapter.getRecord(treeName);
				treeAdapter.deleteRecord(rec.getKey());
				ModuleManager mm = treeMap.remove(treeName);
				mm.dispose();
				program.programTreeChanged(rec.getKey(), ProgramEvent.PROGRAM_TREE_REMOVED, null,
					treeName, null);
				return true;
			}

		}
		catch (IOException e) {
			errHandler.dbError(e);
		}
		finally {
			lock.release();
		}
		return false;
	}
Remove the tree with the given name.
@param treeName tree name
@return true if the tree was removed
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/TreeManager.java