The backend delete endpoint returns 204 No Content with an empty body, but the frontend was attempting to parse the empty response as JSON. This caused a "JSON.parse: unexpected end of data" error when deleting files. The fix adds special handling to not parse JSON for delete responses on success.