Deployments

Deletes a deployment from the deployment history.

A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

delete/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}

Path parameters

deploymentNamestring required

The name of the deployment.

Parameters

../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter — unresolved $ref
../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter — unresolved $ref

Response

Resource deletion accepted.

Changes

Changed in 2 of the 23 revisions of this API.21

  • 2015-11-01ea64f4e7e8982See the full diff
    • deleted the path request parameter subscriptionId

      request-parameter-removed

    • deleted the query request parameter api-version

      request-parameter-removed

  • 2015-11-0145a3cbbdc79c1See the full diff
    • endpoint added

      endpoint-added