Forum Discussion
Deleting conversation (chat) in MS Teams / Creating a new conversation
Hello,
I need to either:
-delete the content of a conversation with a Teams app (azure bot installed on teams) from a node app.
-delete the whole conversation page and initiate a new one
For eg. when some condition is met, I need the content of the conversations in PBot1 to be deleted and then send a message as the first message in the conversation.
Thanks!
- Prasad_Das-MSFTMicrosoft
ahmedkallel - In the Bot Framework, every message has its unique activity identifier. Messages can be deleted using the Bot Framework's
DeleteActivity
method.
To delete a message, pass that activity's ID to thedeleteActivity
method of theTurnContext
object.
Ref: Update and delete messages sent from your bot - Teams | Microsoft LearnThanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.