---
title: "Delete Stateful Node"
method: DELETE
path: "/aws/ec2/managedInstance/{MI_ID}"
tags: ["Stateful Node AWS"]
---

# Delete Stateful Node

`DELETE /aws/ec2/managedInstance/{MI_ID}`

Get specific Stateful Node config.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1aws~1ec2~1managedInstance~1%7BMI_ID%7D/put/parameters/1` — unresolved $ref

## Request body

- object
  - `deallocationConfig` object
    - `shouldDeleteImages` boolean — Flag to remove persistent image Default: false
    - `shouldDeleteNetworkInterfaces` boolean — Flag to remove network interfaces Default: false
    - `shouldDeleteVolumes` boolean — Flag to remove persistent volumes Default: false
    - `shouldDeleteSnapshots` boolean — Flag to remove snapshots Default: false
    - `shouldTerminateInstance` boolean — Flag to detach a machine without terminating it on AWS side. This will enable rollback to AWS. Example: false
  - `amiBackup` object
    - `shouldDeleteImages` boolean — Mark if images collected during AMI Auto Backup should be deleted during instance deletion Default: false

## Other responses

- `200` — unresolved $ref
- `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)
