Delete a Microsoft Teams channel message using the Graph API

Viewed 1205

Is it currently possible to delete a message from a channel, using the Graph REST API?

I can retrieve a message with GET:

GET /teams/{team_id}/channels/{channel_id}/messages/{message_id}

But the corresponding DELETE fails with a 404 error:

DELETE /teams/{team_id}/channels/{channel_id}/messages/{message_id}  # fails

I'm using the beta API, if it matters. I'm also the author of the message in question.

1 Answers

Copying the answer for better visibility

There is no such API as of now that deletes channel message. There is already feature request present in Microsoft Graph Feedback Forum. Upvote it so that it may be implemented in the future by Product Team.

Related