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

Function deleteDocument

ui/node-react/client/src/api.js:204–212  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

202}
203
204export async function deleteDocument(filename) {
205 const res = await fetch(`${API_BASE}/documents/delete`, {
206 method: 'POST',
207 headers: getHeaders(),
208 body: JSON.stringify({ filename }),
209 });
210 if (!res.ok) throw new Error('Failed to delete document');
211 return res.json();
212}
213
214// Feedback
215export async function getFeedback() {

Callers 1

handleDeleteFunction · 0.85

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected