---
title: "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}"
method: DELETE
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}"
tags: ["Discounts"]
---

# DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}

`DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/discounts/{discountName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Delete discount. Clears the metadata from the user's view.

## Path parameters

- `subscriptionId` string, uuid, required
- `resourceGroupName` string, required
- `discountName` string, required

## Query parameters

- `api-version` string, required

## Response `202`

Resource operation accepted.

## Other responses

- `204`: There is no content to send for this request, but the headers may be useful.
- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2022-11-01) `524c785862c5`: 3 breaking
  - added the new path request parameter `resourceGroupName`
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`
- **2026-07-13** (2022-11-01) `a1c0ddb43231`: 1 info
  - endpoint added
- **2026-07-13** (2022-11-01) `47d61aaf3262`: 1 breaking
  - api path removed without deprecation
- **2022-11-14** (2022-11-01) `2a40ceec2c00`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.BillingBenefits/discounts/:discountName/delete.md)

---

[API](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits.md) - [All operations](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits/revisions/524c785862c5?raw)
