v14

latestSwagger 2.0raw.githubusercontent.com2022-04-018660175.5 KB
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/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}

Path parameters

scopestring required

The scope of a deployment.

deploymentNamestring required

The name of the deployment.

Query parameters

api-versionstring required

The API version to use for this operation.

Response

Accepted - Returns this status until the asynchronous operation has completed.