MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / handleDeleteFile

Function handleDeleteFile

ai-code-studio/src/components/MemoryPanel.tsx:67–76  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

65 }
66
67 async function handleDeleteFile(filename: string) {
68 try {
69 await api(`/api/memory/file/${encodeURIComponent(filename)}`, { method: 'DELETE' });
70 if (activeFile?.filename === filename) {
71 setActiveFile(null);
72 setActiveView('overview');
73 }
74 await loadOverview();
75 } catch { /* ignore */ }
76 }
77
78 async function handleSearch() {
79 if (!searchQuery.trim()) return;

Callers 1

MemoryPanelFunction · 0.85

Calls 1

apiFunction · 0.90

Tested by

no test coverage detected