MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / deleteTrail

Function deleteTrail

ui/src/lib/api.ts:242–248  ·  view source on GitHub ↗
(id: string, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

240
241/** Remove a saved trail, answering the whole list as it now stands. */
242export function deleteTrail(id: string, signal?: AbortSignal): Promise<WireTrails> {
243 const adapter = getGraphAdapter();
244 if (!adapter.deleteTrail) {
245 return Promise.reject(new ApiFailure(0, 'refused', 'This viewer cannot delete trails.', null));
246 }
247 return adapter.deleteTrail(id, signal);
248}

Callers 1

removeFunction · 0.90

Calls 2

getGraphAdapterFunction · 0.90
deleteTrailMethod · 0.80

Tested by

no test coverage detected