libraries/botbuilder-dialogs/botbuilder/dialogs/dialog_context.py
async def cancel_all_dialogs(self):
        """
        Deletes any existing dialog stack thus cancelling all dialogs on the stack.
        :param result: (Optional) result to pass to the parent dialogs.
        :return:
        """
        if (len(self.stack) > 0):
            while (len(self.stack) > 0):
                await self.end_active_dialog(DialogReason.CancelCalled)
            return DialogTurnResult(DialogTurnStatus.Cancelled)
        else:
            return DialogTurnResult(DialogTurnStatus.Empty)
async def cancel_all_dialogs(self):
        """
        Deletes any existing dialog stack thus cancelling all dialogs on the stack.
        :param result: (Optional) result to pass to the parent dialogs.
        :return:
        """
        if (len(self.stack) > 0):
            while (len(self.stack) > 0):
                await self.end_active_dialog(DialogReason.CancelCalled)
            return DialogTurnResult(DialogTurnStatus.Cancelled)
        else:
            return DialogTurnResult(DialogTurnStatus.Empty)
Deletes any existing dialog stack thus cancelling all dialogs on the stack.
        :param result: (Optional) result to pass to the parent dialogs.
        :return: