MCPcopy Create free account
hub / github.com/benjitaylor/agentation / deleteAnnotation

Function deleteAnnotation

package/src/utils/sync.ts:105–116  ·  view source on GitHub ↗
(
  endpoint: string,
  annotationId: string
)

Source from the content-addressed store, hash-verified

103 * Delete an annotation from the server.
104 */
105export async function deleteAnnotation(
106 endpoint: string,
107 annotationId: string
108): Promise<void> {
109 const response = await fetch(`${endpoint}/annotations/${annotationId}`, {
110 method: "DELETE",
111 });
112
113 if (!response.ok) {
114 throw new Error(`Failed to delete annotation: ${response.status}`);
115 }
116}
117
118export type ActionResponse = {
119 success: boolean;

Callers 1

PageFeedbackToolbarCSSFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…