---
title: "Delete Elastigroup"
method: DELETE
path: "/aws/ec2/group/{groupId}"
tags: ["Elastigroup AWS"]
---

# Delete Elastigroup

`DELETE /aws/ec2/group/{groupId}`

Delete an Elastigroup AWS

## Query parameters

- `accountId` string

## Parameters

- `#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/0` — unresolved $ref

## Request body

- object
  - `statefulDeallocation` object
    - `shouldDeleteImages` boolean — For stateful groups, removes persistent images
    - `shouldDeleteNetworkInterfaces` boolean — For stateful groups, removes network interfaces
    - `shouldDeleteVolumes` boolean — For stateful groups, removes persistent volumes
    - `shouldDeleteSnapshots` boolean — For stateful groups, removes snapshots
  - `beanstalk` object
    - `rollbackToAsg` boolean — For groups with Beanstalk integration, roll back the attached ASG to the state prior to integration.
  - `amiBackup` object
    - `shouldDeleteImages` boolean — Mark if images collected during AMI Auto Backup should be deleted during group deletion

## Response `200`

Delete Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code

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