Context Object Error in BotUserSession delete function or documentation

api

(ANTONIO NUNEZ) #1

Context Object working with

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/context-object/

Here is whay I get in my test script: “BotUserSession.delete is not a function”

So seems documentation states that the delete method is valid, could it be an error in the documentation or a bug? I try to delete this for testing purposes Instead of waiting for TTL


(Swagat) #2

@antonio.nunez
Seems documentation is incorrect. Try to use something like

UserSession.put("key_name", undefined);

This can at least unset it if not delete.