export type DeleteApihttpLocalhost8000ProjectIdLandmarksGroupsLandmarkgroupIdArgs = {project_id: string, landmarkgroup_id: string}; export type DeleteApihttpLocalhost8000ProjectIdLandmarksGroupsLandmarkgroupIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete one particular landmark group. * * DELETE http://localhost:8000/{project_id}/landmarks/groups/{landmarkgroup_id}/ */ export const deleteApihttpLocalhost8000ProjectIdLandmarksGroupsLandmarkgroupId = async (args: DeleteApihttpLocalhost8000ProjectIdLandmarksGroupsLandmarkgroupIdArgs, options?: DeleteApihttpLocalhost8000ProjectIdLandmarksGroupsLandmarkgroupIdOptions) => { const {baseUrl = "http://localhost:8000", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}http://localhost:8000/${encodeURIComponent(String(args.project_id))}/landmarks/groups/${encodeURIComponent(String(args.landmarkgroup_id))}/${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };