MCPcopy
hub / github.com/BuilderIO/agent-native / handleDelete

Function handleDelete

packages/dispatch/src/components/agents-panel.tsx:90–99  ·  view source on GitHub ↗
(resourceId?: string)

Source from the content-addressed store, hash-verified

88 };
89
90 const handleDelete = async (resourceId?: string) => {
91 if (!resourceId) return;
92 const res = await fetch(
93 agentNativePath(`/_agent-native/resources/${resourceId}`),
94 {
95 method: "DELETE",
96 },
97 );
98 if (res.ok) onRefresh();
99 };
100
101 return (
102 <section className="rounded-2xl border bg-card p-5">

Callers 1

AgentsPanelFunction · 0.70

Calls 2

agentNativePathFunction · 0.90
fetchFunction · 0.50

Tested by

no test coverage detected