Skip to content
SupportLogin
Delete a stack

Delete a stack

DELETE/api/v1/stacks/{stack_id}

Deletes the stack for good; requests naming its model_id fail afterwards. To stop it serving and keep it, update its status to inactive.

Path ParametersExpand Collapse
stack_id: string
formatuuid
ReturnsExpand Collapse
id: string
formatuuid
object: "stack.deleted"
deleted: boolean

Always true.

Delete a stack

curl https://api.prod.adaptionlabs.ai/api/v1/stacks/$STACK_ID \
    -X DELETE \
    -H "Authorization: Bearer $ADAPTION_API_KEY"
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "object": "stack.deleted",
  "deleted": true
}
Returns Examples
{
  "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "object": "stack.deleted",
  "deleted": true
}