Subscription Diagnostic Settings - Delete

Deletes existing subscription diagnostic settings for the specified resource.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings/{name}?api-version=2021-05-01-preview

URI Parameters

Name In Required Type Description
name
path True

string

The name of the diagnostic setting.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

Successful request to remove a subscription diagnostic setting

204 No Content

Successful request to remove a subscription diagnostic setting

Other Status Codes

ErrorResponse

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

Deletes the subscription diagnostic setting

Sample request

DELETE https://management.azure.com/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/providers/Microsoft.Insights/diagnosticSettings/ds4?api-version=2021-05-01-preview

Sample response

Definitions

ErrorResponse

Describes the format of Error response.

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.