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
  },
  "beanstalk": {
    "rollbackToAsg": true
  },
  "amiBackup":{
    "shouldDeleteImages": false
  }  
}
Parameter Type Description
statefulDeallocation Object

statefulDeallocation.shouldDeleteImages Boolean

For stateful groups: remove persistent images

Default: false
statefulDeallocation.shouldDeleteNetworkInterfaces Boolean

For stateful groups: remove network interfaces

Default: true
statefulDeallocation.shouldDeleteVolumes Boolean

For stateful groups: remove persistent volumes

Default: false
statefulDeallocation.shouldDeleteSnapshots Boolean

For stateful groups: remove snapshots

Default: false
amiBackup Object

amiBackup.shouldDeleteImages Boolean

Mark if images collected during AMI Auto Backup should be deleted during group deletion

Default: false
Beanstalk Object

Beanstalk.rollbackToAsg Boolean

For groups with Beanstalk integration: roll back the attached ASG to its state prior to the integration.

Default: true
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"
    }
  }
}