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 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string |
Subscription Id which forms part of the URI for every service call. |
|
template
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
Name of the Template Spec. |
|
template
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
The version of the Template Spec. |
|
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 |
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
Sample response
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
Error Response |
|
Template |
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 |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
TemplateSpecsError
Template Specs error response.
| Name | Type | Description |
|---|---|---|
| error |
Error Response |