MS Teams Bot Framework icon

MS Teams Bot Framework

Send messages and interact with MS Teams using Azure Bot Framework

Delete Message

AI-generated

Summary

Delete a message in a Microsoft Teams conversation

Inputs

  • conversationId (required) — The conversation ID where the message resides
  • activityId (required) — The ID of the message to delete
  • additionalFields — Optional extra fields such as channel ID, tenant ID, or message type

Output shape

a list of acknowledgment objects

Each item contains a success flag and a message; on error an error field is included with details

Examples

Example 1: Remove a specific message from a channel

Provide conversationId and activityId; optionally set additionalFields (e.g., channel ID).

Discussion