MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / remove_project

Method remove_project

src/cocoindex_code/daemon.py:166–176  ·  view source on GitHub ↗

Remove a project from the registry. Returns True if it was loaded.

(self, project_root: str)

Source from the content-addressed store, hash-verified

164 return self._projects[project_root]
165
166 def remove_project(self, project_root: str) -> bool:
167 """Remove a project from the registry. Returns True if it was loaded."""
168 import gc
169
170 project = self._projects.pop(project_root, None)
171 if project is not None:
172 project.close()
173 del project
174 gc.collect()
175 return True
176 return False
177
178 def close_all(self) -> None:
179 """Close all loaded projects and release resources."""

Callers 2

_dispatchFunction · 0.80
resetFunction · 0.80

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected