export type DeleteApiProvidersMicrosoftIntuneLocationsHostNameAndroidPoliciesPolicyNameGroupsGroupIdArgs = {hostName: string, policyName: string, groupId: string, 'api-version': string}; export type DeleteApiProvidersMicrosoftIntuneLocationsHostNameAndroidPoliciesPolicyNameGroupsGroupIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete Group for Android Policy * * DELETE /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups/{groupId} */ export const deleteApiProvidersMicrosoftIntuneLocationsHostNameAndroidPoliciesPolicyNameGroupsGroupId = async (args: DeleteApiProvidersMicrosoftIntuneLocationsHostNameAndroidPoliciesPolicyNameGroupsGroupIdArgs, options?: DeleteApiProvidersMicrosoftIntuneLocationsHostNameAndroidPoliciesPolicyNameGroupsGroupIdOptions) => { const {baseUrl = "https://management.azure.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args['api-version'] != null) query.append("api-version", String(args['api-version'])) const url = `${baseUrl.replace(/\/+$/, '')}/providers/Microsoft.Intune/locations/${encodeURIComponent(String(args.hostName))}/androidPolicies/${encodeURIComponent(String(args.policyName))}/groups/${encodeURIComponent(String(args.groupId))}${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 };