Usage
m365 teams message remove [options]
Description
Removes a message from a channel in a Microsoft Teams team
Options
| Option |
Description |
--teamId [teamId] |
ID of the Microsoft Teams team. Specify either teamId or teamName but not both. |
--teamName [teamName] |
Name of the Microsoft Teams team. Specify either teamId or teamName but not both. |
--channelId [channelId] |
Channel ID of the Microsoft Teams team. Specify either channelId or channelName but not both. |
--channelName [channelName] |
Channel name of the Microsoft Teams team. Specify either channelId or channelName but not both. |
-i, --id <id> |
The ID of the Teams message. |
-f, --force |
Don't prompt for confirmation. |
Examples
Remove a message by using IDs
m365 teams message remove --teamId 5f5d7b71-1161-44d8-bcc1-3da710eb4171 --channelId 19:[email protected] --id 1540747442203
Remove a message by using display names
m365 teams message remove --teamName Marketing --channelName Branding --id 1540747442203
Default properties
No response
Additional Info
Remarks:
- This command doesn't support application permissions, let's check for this
API: https://learn.microsoft.com/en-us/graph/api/chatmessage-softdelete?view=graph-rest-1.0&tabs=http
Usage
m365 teams message remove [options]
Description
Removes a message from a channel in a Microsoft Teams team
Options
--teamId [teamId]teamIdorteamNamebut not both.--teamName [teamName]teamIdorteamNamebut not both.--channelId [channelId]channelIdorchannelNamebut not both.--channelName [channelName]channelIdorchannelNamebut not both.-i, --id <id>-f, --forceExamples
Remove a message by using IDs
Remove a message by using display names
Default properties
No response
Additional Info
Remarks:
API: https://learn.microsoft.com/en-us/graph/api/chatmessage-softdelete?view=graph-rest-1.0&tabs=http