Delete a preview environment generated by a preview template.
Required permission
Account > Templates > General > Delete
Path parameters
projectId
string requiredID of the projectpipelineId
string requiredID of the pipelinepreviewId
string requiredID of the preview environment
Query parameters
skipTeardown
booleanIf `true`, the teardown spec will not be run when deleting the preview environment.
Request body
- {object}
teardownArgumentOverrides
{object}Argument overrides to pass to the teardown spec when deleting the preview environment.
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
DELETE /v1/projects/{projectId}/pipelines/{pipelineId}/preview-envs/previews/{previewId}
DELETE /v1/teams/{teamId}/projects/{projectId}/pipelines/{pipelineId}/preview-envs/previews/{previewId}
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request DELETE \
--data 'undefined' \
https://api.northflank.com/v1/projects/{projectId}/pipelines/{pipelineId}/preview-envs/previews/{previewId}Example response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}