Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Clearing chat in custom AIR implementation

Avatar

Employee

Hello,

I’m hoping there is a better way to clear chat then using the “one at a time” Retract button in the Dev Console.

Please advise – Thanks.

2 Replies

Avatar

Former Community Member

Hi,

This is function called clear() in SimpleChatModel which clears the history. Calling it should clear your chat history and reset all the history nodes with empty content.

Thanks

Hironmay Basu

Avatar

Former Community Member

Hi meaman,

Sounds like a good request for the dev console as well - we'll add a "remove all" button there so you don't have to do it manually.

thanks for the feedback!

nigel