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

Function deleteConfigItem

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

Source from the content-addressed store, hash-verified

81 * @returns {Promise<object>} - API response.
82 */
83export const deleteConfigItem = async (relativePath) => {
84 const url = getApiUrl(`/configs/${encodeURIComponent(relativePath)}`);
85 const response = await fetch(url, { method: 'DELETE' });
86 // Use handleApiResponse which includes error handling
87 return handleApiResponse(response);
88};
89
90/**
91 * Moves/Renames a file or folder within the configs directory.

Callers 1

handleDeleteFunction · 0.90

Calls 2

getApiUrlFunction · 0.90
handleApiResponseFunction · 0.85

Tested by

no test coverage detected