Delete a stack
Deletes the stack for good; requests naming its model_id fail afterwards. To stop it serving and keep it, update its status to inactive.
Delete a stack
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
stack = client.stacks.delete(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(stack.id){
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"object": "stack.deleted",
"deleted": true
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"object": "stack.deleted",
"deleted": true
}