(collection, request, stack_name, stack_id)
return b''
Successfully delete a stack as long as it exists. Updates the stacks status.
Successfully delete a stack as long as it exists. Updates the stacks status.
Successfully delete a stack as long as it exists . Updates the stacks status .
def default_delete_behavior(collection, request, stack_name, stack_id):
    """
    Successfully delete a stack as long as it exists. Updates the stacks status.
    """
    stack = collection.stack_by_id(stack_id)

    if stack is None:
        request.setResponseCode(404)
        return b''

    stack.update_action_and_status(Stack.DELETE, Stack.COMPLETE)
    request.setResponseCode(204)
    return b''
def default_delete_behavior ( collection , request , stack_name , stack_id ) : stack = collection . stack_by_id ( stack_id ) if stack is None : request . setResponseCode ( 404 ) return b'' stack . update_action_and_status ( Stack . DELETE , Stack . COMPLETE ) request . setResponseCode ( 204 ) return b''