DELETEhttps://api.spotinst.io/setup/account/{ACCOUNT_ID}

Delete a Spotinst Account.

The Spotinst Account ID can be obtained from your Spotinst console via the following link: https://console.spotinst.com/#/settings/account/general

Note: This cannot be undone – take caution
Only Organization Admins can perform this action.
In case you want to delete your default Spotinst account which is the account visible when you first log in please contact Support.

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst Account id you wish to delete.

Example: act-123456
Request

Headers
Copied!
Downloaded!
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Response - 200

Body
Copied!
Downloaded!
{
  "request": {
    "id": "d28e6397-137a-4d8b-91bc-bd9263e1b79f",
    "url": "/setup/account/act-57761239",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:51:04.283Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}
Response - 400

Body
Copied!
Downloaded!
{
  "request": {
    "id": "bf72783d-8fd1-4f93-99b8-202a7131b11b",
    "url": "/setup/account/act-9af",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:49:58.283Z"
  },
  "response": {
    "status": {
      "code": 400,
      "message": "Bad Request"
    },
    "errors": [
      {
        "code": "FAILED_TO_DELETE_ACCOUNT_EXISTING_RESOURCES",
        "message": "Cannot delete account, there are existing resources: ELASTIGROUP, Please delete all existing resources before deleting the account."
      }
    ]
  }
}
Response - 400

Body
Copied!
Downloaded!
{
  "request": {
    "id": "bf72783d-8fd1-4f93-99b8-202a7131b11b",
    "url": "/setup/account/act-9af",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:49:58.283Z"
  },
  "response": {
    "status": {
      "code": 400,
      "message": "Bad Request"
    },
    "errors": [
      {
        "code": "DELETION_FAILED",
        "message": "Failed to delete account, please contact our support."
      }
    ]
  }
}
Response - 400

Body
Copied!
Downloaded!
{
  "request": {
    "id": "bf72783d-8fd1-4f93-99b8-202a7131b11b",
    "url": "/setup/account/act-9af",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:49:58.283Z"
  },
  "response": {
    "status": {
      "code": 400,
      "message": "Bad Request"
    },
    "errors": [
      {
        "code": "DELETION_FAILED_ACCOUNT_NOT_FOUND",
        "message": "Account not found"
      }
    ]
  }
}