MCPcopy
hub / github.com/e-p-armstrong/augmentoolkit / deleteInputItem

Function deleteInputItem

atk-interface/src/api.js:209–216  ·  view source on GitHub ↗
(relativePath)

Source from the content-addressed store, hash-verified

207};
208
209export const deleteInputItem = async (relativePath) => {
210 const url = getApiUrl(`/inputs/${encodeURIComponent(relativePath)}`);
211 const response = await fetch(url, { method: 'DELETE' });
212 if (!response.ok) {
213 await handleApiError(response, `delete input item: ${relativePath}`);
214 }
215 return response.json(); // Or just check status if no body expected on success
216};
217
218export const createInputDirectory = async (relativePath) => {
219 const url = getApiUrl('/inputs/directory');

Callers 1

handleDeleteFunction · 0.90

Calls 2

getApiUrlFunction · 0.90
handleApiErrorFunction · 0.90

Tested by

no test coverage detected