---
search:
  tags:
    - sites
    - POST
seo:
  description: >-
    A queued deploy is canceled at once; a building one stops within… Reference
    for the POST /v1/sites/{site}/deploys/{deploy}/cancel endpoint in the
    pols.so API.
sidebar:
  label: Cancel a deploy
  badge: POST
title: Cancel a deploy
type: openapi-operation
---
A queued deploy is canceled at once; a building one stops within
seconds, and its sandbox is deleted. A deploy that is publishing or
over can no longer be canceled (409 `conflict`).

`POST /v1/sites/{site}/deploys/{deploy}/cancel`
