'Deletes a given stack.
:param ctxt: RPC context.
:param stack_identity: Name of the stack you want to delete.
:param cast: cast the message instead of using call (default: False)
You probably never want to use cast(). If you do, you\'ll never hear
about any exceptions the call might raise.'

def delete_stack(self, ctxt, stack_identity, cast=False):

    rpc_method = (self.cast if cast else self.call)
    return rpc_method(ctxt, self.make_msg('delete_stack', stack_identity=stack_identity))
