fbpx
DELETEhttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}?accountId={ACCOUNT_ID}

Delete an existing Elastigroup

URL Parameters

Parameter Type Description
GROUP_ID * String

The group ID you want to delete

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
	"Content-Type": "application/json",
	"Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
    "statefulDeallocation": {
                   "shouldDeleteImages": false,
                   "shouldDeleteNetworkInterfaces": false,
                   "shouldDeleteVolumes": false,
                   "shouldDeleteSnapshots": false
               }
}
Parameter Type Description
shouldDeleteImages String

For stateful groups: remove persistent images

Default: false
shouldDeleteNetworkInterfaces String

For stateful groups: remove network interfaces

Default: true
shouldDeleteVolumes String

For stateful groups: remove persistent volumes

Default: false
shouldDeleteSnapshots String

For stateful groups: remove snapshots

Default: false
Response - 200

Headers
{
	"Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "4a0d5084-0b41-4255-82e5-d64a8232d7cc",
    "url": "/aws/ec2/group/sig-98765",
    "method": "DELETE",
    "time": "2015-06-28T15:52:45.772Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}