Scheduled Query Rules - Delete
Deletes a Log Search rule
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}?api-version=2018-04-16URI 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 a Log Search rule | |
| 204 No Content | No Content. Resource not found | |
| Other Status Codes | Error response describing why the operation failed. | 
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 rule
Sample request
DELETE https://management.azure.com/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourcegroups/Rac46PostSwapRG/providers/Microsoft.Insights/scheduledQueryRules/logalertfoo?api-version=2018-04-16
Sample response
Definitions
| Name | Description | 
|---|---|
| Error | Describes the format of Error response. | 
| Error | Describes the format of Error response. | 
ErrorContract 
			
			Describes the format of Error response.
| Name | Type | Description | 
|---|---|---|
| error | The error details. | 
ErrorResponse 
			
			Describes the format of Error response.
| Name | Type | Description | 
|---|---|---|
| code | string | Error code | 
| message | string | Error message indicating why the operation failed. |