fbpx
DELETEhttps://api.spotinst.io/setup/organization/{ORGANIZATION_ID}

Delete a Spotinst Organization.

The Spotinst Organization ID can be obtained from your Spotinst console via the following link: https://help.spotinst.com/hc/en-us/articles/115004430585

Note: This cannot be undone – take caution

Parameter Type Description
ORGANIZATION_ID * String

The Spotinst Account id you wish to delete.

Example: 123456789
Request

Headers
Content-Type: application/json
Authorization: Bearer ${token}
Response - 200

Body
Copied!
Downloaded!
{
  "request": {
    "id": "e5054c32-5d8d-44fb-8272-593122c3ab0e",
    "url": "/setup/organization/606079983647",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:52:38.732Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}
Response - 400

Body
Copied!
Downloaded!
{
  "request": {
    "id": "636c088d-5ce9-4e9a-9892-1b70d33f63a2",
    "url": "/setup/organization/606079864312",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:49:17.119Z"
  },
  "response": {
    "status": {
      "code": 400,
      "message": "Bad Request"
    },
    "errors": [
      {
        "code": "DELETION_FAILED",
        "message": "Failed to delete organization, please contact our support."
      }
    ]
  }
}
Response - 400

Body
Copied!
Downloaded!
{
  "request": {
    "id": "636c088d-5ce9-4e9a-9892-1b70d33f63a2",
    "url": "/setup/organization/606079864312",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:49:17.119Z"
  },
  "response": {
    "status": {
      "code": 400,
      "message": "Bad Request"
    },
    "errors": [
      {
        "code": "DELETION_FAILED",
        "message": "Organization not found"
      }
    ]
  }
}
Response - 400

Body
Copied!
Downloaded!
{
  "request": {
    "id": "636c088d-5ce9-4e9a-9892-1b70d33f63a2",
    "url": "/setup/organization/606079864312",
    "method": "DELETE",
    "timestamp": "2018-01-04T19:49:17.119Z"
  },
  "response": {
    "status": {
      "code": 400,
      "message": "Bad Request"
    },
    "errors": [
      {
        "code": "FAILED_TO_DELETE_ACCOUNT_EXISTING_RESOURCES",
        "message": "Failed to delete account [act-b78638h9, act-b7863ns8], due to existing resources. Please delete all resources from the account prior to deletion."
      }
    ]
  }
}