---
title: "Delete Stateful Node"
method: DELETE
path: "/azure/compute/statefulNode/{nodeId}"
tags: ["Elastigroup Azure Stateful"]
---

# Delete Stateful Node

`DELETE /azure/compute/statefulNode/{nodeId}`

Delete an existing stateful node from the account.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1azure~1compute~1statefulNode~1%7BnodeId%7D/get/parameters/1` — unresolved $ref

## Request body

- object
  - `deallocationConfig` object
    - `shouldTerminateVm` boolean, required — Indicates whether to delete the stateful node's VM.
    - `shouldDeregisterFromLb` boolean — Indicates whether to deregister the stateful node's VM from any type of load balancer. Can be changed to false only when shouldTerminateVms is 'false'
    - `networkDeallocationConfig` object — Network Deallocation Configuration.
      - `shouldDeallocate` boolean, required — Indicates whether to delete the stateful node's network resources.
      - `ttlInHours` integer — Hours to keep the resource alive before deletion.
    - `diskDeallocationConfig` object — Disk Deallocation Configuration.
      - `shouldDeallocate` boolean, required — Indicates whether to delete the stateful node's disk resources.
      - `ttlInHours` integer — Hours to keep the resource alive before deletion.
    - `snapshotDeallocationConfig` object — Snapshot Deallocation Configuration.
      - `shouldDeallocate` boolean, required — Indicates whether to delete the stateful node's snapshot resources.
      - `ttlInHours` integer — Hours to keep the resource alive before deletion.
    - `publicIpDeallocationConfig` object — Public IP Deallocation Configuration.
      - `shouldDeallocate` boolean, required — Indicates whether to delete the stateful node's public ip resources.
      - `ttlInHours` integer — Hours to keep the resource alive before deletion.
    - `shouldRevertToOd` boolean — Indicates whether to change the stateful node's VM lifecycle to on-demand. Can be changed to true only when shouldTerminateVms is 'false'.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
