---
title: "Factory reset VM"
method: POST
path: "/api/v1/vms/{id}/factory-reset"
tags: ["Virtual Machines"]
---

# Factory reset VM

`POST /api/v1/vms/{id}/factory-reset`

Factory reset a virtual machine to its original state. This will destroy all data on the VM and restore it to the original template.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Project-ID` string, uuid, required

## Response `200`

Factory reset initiated

- SuccessResponse
  - `success` boolean
  - `message` string

## Other responses

- `400` — X-Project-ID header is required for this endpoint
- `401` — Authentication required
- `404` — Resource not found

---

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