---
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

---

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