Management Group Subscriptions - Delete

De-associates subscription from the management group.

DELETE https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}?api-version=2020-05-01

URI Parameters

Name In Required Type Description
groupId
path True

string

Management Group ID.

subscriptionId
path True

string

Subscription ID.

api-version
query True

string

Version of the API to be used with the client request. The current version is 2018-01-01-preview.

Request Header

Name Required Type Description
Cache-Control

string

Indicates that the request shouldn't utilize any caches.

Responses

Name Type Description
200 OK

OK

204 No Content

NoContent

Other Status Codes

ErrorResponse

Error

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

DeleteSubscriptionFromManagementGroup

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc?api-version=2020-05-01

Sample Response

Definitions

Name Description
ErrorDetails

The details of the error.

ErrorResponse

The error object.

ErrorDetails

The details of the error.

Name Type Description
code

string

One of a server-defined set of error codes.

details

string

A human-readable representation of the error's details.

message

string

A human-readable representation of the error.

ErrorResponse

The error object.

Name Type Description
error

ErrorDetails

Error
The details of the error.