MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeWiki / remove

Method remove

codewiki/mcp/session.py:118–121  ·  view source on GitHub ↗

Remove a session. Returns True if it existed.

(self, session_id: str)

Source from the content-addressed store, hash-verified

116 return state
117
118 def remove(self, session_id: str) -> bool:
119 """Remove a session. Returns True if it existed."""
120 with self._lock:
121 return self._sessions.pop(session_id, None) is not None
122
123 def _purge_expired_locked(self) -> None:
124 """Remove all expired sessions. Caller must hold _lock."""

Callers 6

mainFunction · 0.95
strongconnectFunction · 0.80
resolve_cyclesFunction · 0.80
_cleanup_repositoryMethod · 0.80
call_toolFunction · 0.80
workerFunction · 0.80

Calls

no outgoing calls

Tested by 2

mainFunction · 0.76
workerFunction · 0.64