Deployment Scripts - Delete

Deletes a deployment script. When operation completes, status code 200 returned without content.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}?api-version=2020-10-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

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

scriptName
path True

string

Name of the deployment script.

subscriptionId
path True

string

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

api-version
query True

string

Client Api version.

Responses

Name Type Description
200 OK

OK -- Deployment script deleted.

204 No Content

Deployment script does not exist.

Other Status Codes

DeploymentScriptsError

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

DeploymentScriptsDelete

Sample Request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/script-rg/providers/Microsoft.Resources/deploymentScripts/MyDeploymentScript?api-version=2020-10-01

Sample Response

Definitions

DeploymentScriptsError

Deployment scripts error response.

ErrorAdditionalInfo

The resource management error additional info.

ErrorResponse

Error Response

DeploymentScriptsError

Deployment scripts 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.)

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.