The clearBotChat native AI script function removes all entries from the botchat (contextual interaction) menu of every bot in the group. The cleared chat profile is automatically sent to EGS to sync with connected clients.
()clearBotChat()
This function takes no arguments.
// Replace an NPC's menu: clear first, then add new entries
()clearBotChat();
()addBotChat("shop:MATIS_ARMOR");
()addBotChat("menu:MENU_WHOAMI WHOAMI_MERCHANT");
Source: ryzom/server/src/ai_service/nf_grp_npc.cpp (clearBotChat__)