Policy Definitions - Delete

Deletes a policy definition in a subscription.
This operation deletes the policy definition in the given subscription with the given name.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}?api-version=2018-05-01

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

The ID of the target subscription.

policyDefinitionName
path True
  • string

The name of the policy definition to delete.

api-version
query True
  • string

The API version to use for the operation.

Responses

Name Type Description
200 OK

OK

204 No Content

No Content

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 a policy definition

Sample Request

DELETE https://management.azure.com/subscriptions/ae640e6b-ba3e-4256-9d62-2993eecfa6f2/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming?api-version=2018-05-01

Sample Response