Diagnostic Settings - Delete

Deletes existing diagnostic settings for the specified resource.

DELETE https://management.azure.com/{resourceUri}/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.

resourceUri
path True

string

The identifier of the resource.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

Successful request to remove a diagnostic setting

204 No Content

Successful request to remove a 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 diagnostic setting

Sample request

DELETE https://management.azure.com/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/Microsoft.Insights/diagnosticSettings/mysetting?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.