[Microsoft Teams Resource] DELETE /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}

Hello everyone,

By any luck, has anyone managed to delete a teams channel message with a Microsoft Teams resource?

After setting up the Microsoft Teams connection, the DELETE /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id} operation does not seem to work and responds with an UnknownError code.

The same GET operation works and the resource has all privileges.

In the Teams Graph API, there is no reference to this endpoint but channel message (soft) deletion should be possible with the
POST /teams/{teamsId}/channels/{channelId}/messages/{chatMessageId}/softDelete operation operation. Any plan to support it?

Thanks,

Hey @gata! Thanks for reaching out.

This isn't really a resource that I'm familiar with, but I'm happy to help out. To start, the description of this particular endpoint is a little confusing. It's the only one without a link to external documentation, as well. :thinking: It is documented in the PowerShell API docs, but I'm also unable to find any equivalent for the REST API.

I'm guessing that the API specs just need to be updated - you can see the version that Retool currently uses here. I'll bring it up with the team and follow up here as soon I have any updates.

1 Like