MCPcopy Create free account
hub / github.com/TAMustafa/Local_Chat_RAG / deleteFile

Function deleteFile

frontend/src/api/filesApi.ts:25–32  ·  view source on GitHub ↗
(fileId: number)

Source from the content-addressed store, hash-verified

23};
24
25export const deleteFile = async (fileId: number) => {
26 try {
27 const response = await axios.delete(`/api/files/${fileId}`);
28 return response.data;
29 } catch (error: any) {
30 throw error?.response?.data?.detail || 'File deletion failed';
31 }
32};

Callers 1

handleDeleteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected