---
title: "Cancel in-progress CVM operation"
method: POST
path: "/api/v1/cvms/{cvm_id}/operations/cancel"
tags: ["CVMs"]
---

# Cancel in-progress CVM operation

`POST /api/v1/cvms/{cvm_id}/operations/cancel`

Cancel the current in-progress operation for a CVM. Revokes the Celery task and clears the operation lock.

## Path parameters

- `cvm_id` string, required

## Response `200`

Operation cancelled or no operation to cancel

- CancelOperationRequest — Response for cancel operation.
  - `cancelled` boolean, required — Whether an operation was actually cancelled
  - `correlation_id` string, nullable — Correlation ID of the cancelled op

## Other responses

- `401` — Authentication required
- `403` — CVM not in workspace
- `404` — CVM not found
- `409` — Cannot cancel this operation type
- `422` — Validation Error

---

[API](https://skmtc.net/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.net/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/versions/83c6ae62e860/schema)
