Metric Alerts - Delete
Delete an alert rule definition.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}?api-version=2018-03-01URI Parameters
| Name | In | Required | Type | Description | 
|---|---|---|---|---|
| resource | path | True | stringminLength: 1 maxLength: 90 | The name of the resource group. The name is case insensitive. | 
| rule | path | True | string | The name of the rule. | 
| subscription | path | True | stringminLength: 1 | The ID of the target subscription. | 
| api-version | query | True | stringminLength: 1 | The API version to use for this operation. | 
Responses
| Name | Type | Description | 
|---|---|---|
| 200 OK | Successful request to delete an metric alert rule | |
| 204 No Content | No content: the request was successful, but the response is empty | |
| Other Status Codes | BadRequest | 
Security
azure_auth
Azure Active Directory OAuth2 Flow
					Type: 
					oauth2
					Flow: 
					implicit
					Authorization URL: 
					https://login.microsoftonline.com/common/oauth2/authorize
			
Scopes
| Name | Description | 
|---|---|
| user_impersonation | impersonate your user account | 
Examples
Delete an alert rule
Sample request
Sample response
Definitions
| Name | Description | 
|---|---|
| Additional | An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string. | 
| Error | |
| Error | Describes details of an error response. | 
| Error | Describes the format of Error response. | 
AdditionalInfo 
			
			An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.
| Name | Type | Description | 
|---|---|---|
| info | 
 | The additional information specific to the type. | 
| type | string | The type of additional information. | 
Error
| Name | Type | Description | 
|---|---|---|
| additionalInfo | An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string. | |
| code | string | Unlocalized string which can be used to programmatically identify the error. | 
| details | An array of additional nested error response info objects, as described by this contract. | |
| message | string | Describes the error in detail and provides debugging information. If Accept-Language is set in the request, it must be localized to that language. | 
| target | string | The target of the particular error (for example, the name of the property in error). | 
ErrorDetail 
			
			Describes details of an error response.
| Name | Type | Description | 
|---|---|---|
| additionalInfo | An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string. | |
| code | string | Unlocalized string which can be used to programmatically identify the error. | 
| message | string | Describes the error in detail and provides debugging information. | 
| target | string | The target of the particular error (for example, the name of the property in error). | 
ErrorResponse 
			
			Describes the format of Error response.
| Name | Type | Description | 
|---|---|---|
| error |