---
title: "Deregister a service from a VM"
method: DELETE
path: "/v1/vms/{id}/services/{serviceName}"
tags: ["vm-services"]
---

# Deregister a service from a VM

`DELETE /v1/vms/{id}/services/{serviceName}`

Idempotent: deleting a service that doesn't exist returns 204.
Removes the firewall auto-rule synchronously; the proxy stops
routing to the service within seconds (cache invalidation
broadcast; 30s TTL is the safety net).

## Response `204`

Service deregistered (or already absent)

## Other responses

- `400` — Invalid service name
- `401` — Missing or invalid credentials
- `404` — Resource not found
- `409` — VM is in `error` state and cannot be modified
- `500` — Internal server error

## Changes

- **2026-05-09** `480d9714a7a5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/fastvm-org/apis/fastvm-api/changes/v1/vms/:id/services/:serviceName/delete.md)

---

[API](https://skmtc.dev/fastvm-org/apis/fastvm-api.md) · [All operations](https://skmtc.dev/fastvm-org/apis/fastvm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fastvm-org/fastvm-api/revisions/480d9714a7a5/schema)
