Template Spec Versions - Delete

Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}?api-version=2021-05-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

Subscription Id which forms part of the URI for every service call.

templateSpecName
path True

string

Name of the Template Spec.

Regex pattern: ^[-\w\._\(\)]+$

templateSpecVersion
path True

string

The version of the Template Spec.

Regex pattern: ^[-\w\._\(\)]+$

api-version
query True

string

Client Api version.

Responses

Name Type Description
200 OK

OK - Template Spec Version deleted.

204 No Content

Template Spec Version does not exist.

Other Status Codes

TemplateSpecsError

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

TemplateSpecVersionsDelete

Sample Request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0?api-version=2021-05-01

Sample Response

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorResponse

Error Response

TemplateSpecsError

Template Specs error response.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorResponse

Error Response

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorResponse[]

The error details.

message

string

The error message.

target

string

The error target.

TemplateSpecsError

Template Specs error response.

Name Type Description
error

ErrorResponse

Error Response
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)