Skip to content

Delete a deployment

DELETE
/api/v4/projects/{id}/deployments/{deployment_id}

Deletes a specified deployment that is not currently the last deployment for an environment or in a running state.

id
required
One of:
string

The ID or URL-encoded path of the project owned by the authenticated user

deployment_id
required
integer

The ID of the deployment

Deployment destroyed

“Cannot destroy running deployment” or “Deployment currently deployed to environment”

Forbidden

Not Found