---
title: "Discard staged CVM changes"
method: DELETE
path: "/api/v1/cvms/{cvm_id}/draft"
tags: ["CVMs", "cvms-draft"]
---

# Discard staged CVM changes

`DELETE /api/v1/cvms/{cvm_id}/draft`

## Request

- Base URL: `https://cloud-api.phala.com`
- URL: `https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/draft`
- Auth: none declared
- TypeScript: <https://skmtc.dev/phala/apis/phala-cloud-api/docs/api/v1/cvms/:cvm_id/draft/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `cvm_id` string, required

## Response `204`

Successful Response

## Other responses

- `404`: ERR-03-052: the CVM has no staged changes
- `409`: ERR-03-054: another request changed the staged changes at the same time
- `422`: Validation Error

## Changes

- **2026-11-07** `c71a8dc90391`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/phala/apis/phala-cloud-api/changes/api/v1/cvms/:cvm_id/draft/delete.md)

---

[API](https://skmtc.dev/phala/apis/phala-cloud-api.md) - [All operations](https://skmtc.dev/phala/apis/phala-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phala/apis/phala-cloud-api/revisions/c71a8dc90391?raw)
