Compartir a través de


Graph Query - Delete

Delete a graph query.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}?api-version=2024-04-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

resourceName
path True

string

The name of the Graph Query resource.

Regex pattern: ^[^<>&:\?]*$

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

The graph query has been successfully deleted.

204 No Content

The resource doesn't exist.

Other Status Codes

GraphQueryError

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 Graph Query

Sample request

DELETE https://management.azure.com/subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resourceGroups/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVM?api-version=2024-04-01

Sample response

Definitions

Name Description
Error

The error object.

ErrorFieldContract

Error Field contract.

GraphQueryError

Error message body that will indicate why the operation failed.

Error

The error object.

Name Type Description
code

string

Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.

details

ErrorFieldContract[]

The list of invalid fields send in request, in case of validation error.

message

string

Human-readable representation of the error.

ErrorFieldContract

Error Field contract.

Name Type Description
code

string

Property level error code.

message

string

Human-readable representation of property-level error.

target

string

Property name.

GraphQueryError

Error message body that will indicate why the operation failed.

Name Type Description
error

Error

The error object.