---
title: "POST /greengrass/v2/deployments/{deploymentId}/cancel"
method: POST
path: "/greengrass/v2/deployments/{deploymentId}/cancel"
---

# POST /greengrass/v2/deployments/{deploymentId}/cancel

`POST /greengrass/v2/deployments/{deploymentId}/cancel`

Cancels a deployment. This operation cancels the deployment for devices that haven't yet received it. If a device already received the deployment, this operation doesn't change anything for that device.

## Path parameters

- `deploymentId` string, required

## Response `200`

Success

- CancelDeploymentResponse
  - `message` string — A message that communicates if the cancel was successful.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException
- `482` — AccessDeniedException
- `483` — InternalServerException
- `484` — ConflictException
- `485` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/greengrassv2.md) · [All operations](https://skmtc.net/aws/apis/greengrassv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/greengrassv2/versions/f491b1d234d1/schema)
