(relativePath)
| 81 | * @returns {Promise<object>} - API response. |
| 82 | */ |
| 83 | export 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. |
no test coverage detected