Forum Discussion
Failed-Delete Message: Initiator (8:orgid:**) is not allowed to delete message
I am trying to delete a message inside Teams Channel using Graph API, the chat was generated using copilot agent. now i used this action to do the delete:-
and this endpoint:-
POST /teams/{teamsId}/channels/{channelId}/messages/{chatMessageId}/softDelete
but we got this error message:-
AclCheckFailed-Delete Message: Initiator (8:orgid:68******3ca) is not allowed to delete message
Although the user who run the flow is teams owner + we have this setting enabled to allow owners to delete message:-
any advice?
Thanks
1 Reply
- Prasad_Das-MSFT
Microsoft
Hi johnjohn-Peter, thanks for raising your issue. Are you trying to delete bot messages? If yes, could you please refer below documentation and lets us know if it helps? Manage messaging policies in Teams - Microsoft Teams | Microsoft Learn