MCPcopy Index your code
hub / github.com/codeaashu/claude-code / deregisterEnvironment

Function deregisterEnvironment

src/bridge/bridgeApi.ts:301–323  ·  view source on GitHub ↗
(environmentId: string)

Source from the content-addressed store, hash-verified

299 },
300
301 async deregisterEnvironment(environmentId: string): Promise<void> {
302 validateBridgeId(environmentId, 'environmentId')
303
304 debug(`[bridge:api] DELETE /v1/environments/bridge/${environmentId}`)
305
306 const response = await withOAuthRetry(
307 (token: string) =>
308 axios.delete(
309 `${deps.baseUrl}/v1/environments/bridge/${environmentId}`,
310 {
311 headers: getHeaders(token),
312 timeout: 10_000,
313 validateStatus: s => s < 500,
314 },
315 ),
316 'Deregister',
317 )
318
319 handleErrorStatus(response.status, response.data, 'Deregister')
320 debug(
321 `[bridge:api] DELETE /v1/environments/bridge/${environmentId} -> ${response.status}`,
322 )
323 },
324
325 async archiveSession(sessionId: string): Promise<void> {
326 validateBridgeId(sessionId, 'sessionId')

Callers

nothing calls this directly

Calls 6

validateBridgeIdFunction · 0.85
withOAuthRetryFunction · 0.85
getHeadersFunction · 0.85
handleErrorStatusFunction · 0.85
debugFunction · 0.70
deleteMethod · 0.65

Tested by

no test coverage detected