---
title: "Set delete-machine annotation"
method: PATCH
path: "/ske/v2alpha1/thr3-standard/workspaces/{workspaceUUID}/machines/{resourceId}"
tags: ["Sotoon Kubernetes Engine"]
---

# Set delete-machine annotation

`PATCH /ske/v2alpha1/thr3-standard/workspaces/{workspaceUUID}/machines/{resourceId}`

To remove specific machines from a node pool, first, use this API to apply a JSON merge patch. The only effective change required in the patch is setting the cluster.x-k8s.io/delete-machine annotation under metadata.annotations.

Once these annotations are applied, use the Scale Node Pool API to update the machine count. For example, if the node pool currently has five machines and you want to remove two, set the number of replicas to 5 - 2 = 3.

## Path parameters

- `resourceId` string, required
- `workspaceUUID` string, required

---

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