MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / handleDelete

Function handleDelete

ui/node-react/client/src/components/DocumentsPage.js:114–126  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

112 };
113
114 const handleDelete = async (filename) => {
115 if (!window.confirm(`Delete "${filename}"? This cannot be undone.`)) return;
116 try {
117 const result = await deleteDocument(filename);
118 setAlert({
119 type: 'success',
120 message: `Deleted ${filename} (${result.count} chunks removed).`,
121 });
122 loadDocuments();
123 } catch (err) {
124 setAlert({ type: 'error', message: err.message });
125 }
126 };
127
128 const handleDownload = async (filename) => {
129 try {

Callers

nothing calls this directly

Calls 1

deleteDocumentFunction · 0.85

Tested by

no test coverage detected