Delete a Yammer message through the Yammer REST API with PowerShell
This post is part of a post series.
- Access the Yammer REST API through PowerShell
- Delete a Yammer message through the Yammer REST API with PowerShell (this post)
- Get all Yammer messages through the Yammer REST API with PowerShell
- Working with groups using the Yammer REST API and PowerShell
- Get all Yammer users through the Yammer REST API with PowerShell
- Manage the group memberships using the Yammer REST API and PowerShell
- Working with users using the Yammer REST API and PowerShell
- Search in Yammer through the Yammer REST API with PowerShell
You can delete a message through API as described here. The snippet below shows how you can do it through PowerShell. You simply need a bearer token and the message id to delete.
You can generate the baerer token (access token) as described in this post.
Always consider the REST API and Rate Limits when accessing a Yammer network.
To remove a message, you must either
- have posted the message yourself
- be an administrator of the group the message was posted to or
- be an admin of the network the message is in
This post is part of a post series.
- Access the Yammer REST API through PowerShell
- Delete a Yammer message through the Yammer REST API with PowerShell (this post)
- Get all Yammer messages through the Yammer REST API with PowerShell
- Working with groups using the Yammer REST API and PowerShell
- Get all Yammer users through the Yammer REST API with PowerShell
- Manage the group memberships using the Yammer REST API and PowerShell
- Working with users using the Yammer REST API and PowerShell
- Search in Yammer through the Yammer REST API with PowerShell