共用方式為


Subscriptions - Delete

Delete the specified subscription.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/subscriptions/{targetSubscriptionId}?api-version=2015-11-01

URI Parameters

Name In Required Type Description
subscriptionId
path True

string

Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.

targetSubscriptionId
path True

string

The target subscription ID.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

OK

204 No Content

No Content

Other Status Codes

Error

Unexpected 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

Delete the specified subscription.

Sample request

DELETE https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Subscriptions.Admin/subscriptions/c79389af-4480-48cc-8fa2-ee8ced8e843d?api-version=2015-11-01

Sample response

Definitions

Name Description
Error

Error response.

ErrorDefinition

Error definition.

Error

Error response.

Name Type Description
error

ErrorDefinition

The error details.

ErrorDefinition

Error definition.

Name Type Description
code

string

Service specific error code which serves as the substatus for the HTTP error code.

details

ErrorDefinition[]

Internal error details.

message

string

Description of the error.