export type DeleteApiV2ResellersUsersIdArgs = {id: string}; export type DeleteApiV2ResellersUsersIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * deleteResellerUser * * DELETE /v2/resellers/users/{id} */ export const deleteApiV2ResellersUsersId = async (args: DeleteApiV2ResellersUsersIdArgs, options?: DeleteApiV2ResellersUsersIdOptions) => { const {baseUrl = "https://api.cloudally.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v2/resellers/users/${encodeURIComponent(String(args.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 res.blob() };