DELETE
/applications/{uuid}/previews/{pull_request_id}Delete Preview Deployment
Delete a preview deployment for a pull request. Cancels active deployments, stops containers, removes volumes/networks, and deletes the preview record. Needs a token with the write and deploy permissions.
uuidstringrequired
UUID of the application.
pull_request_idintegerrequired
Pull request ID of the preview to delete.
200Preview deletion queued.
messagestringoptional
400Invalid token.
messagestringoptional
401Unauthenticated.
messagestringoptional
403The token needs the write and deploy permissions.
404Resource not found.
messagestringoptional
422Validation error.
errorsobjectoptional
messagestringoptional
Error handling
A 400 is returned: Invalid token. A 401 is returned: Unauthenticated. A 403 is returned: The token needs the write and deploy permissions. A 404 is returned: Resource not found. A 422 is returned: Validation error.