How to permanently delete retained data stored in Yammer

%3CLINGO-SUB%20id%3D%22lingo-sub-792270%22%20slang%3D%22en-US%22%3EHow%20to%20permanently%20delete%20retained%20data%20stored%20in%20Yammer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-792270%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20a%20Yammer%20network%20admin%2C%20our%20data%20retension%20is%20Soft%20Delete%2C%20from%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fyammer%2Fmanage-security-and-compliance%2Fmanage-data-compliance%3FredirectSourcePath%3D%25252fen-us%25252farticle%25252fManage-Yammer-data-compliance-8c4651fa-12c2-4ced-b4ea-2200c0a630ed%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elink%20%2C%3C%2FA%3E%3C%2FP%3E%3CP%3Eit%20mentioned%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%233366FF%22%3E%3CEM%3ERetained%20data%20stored%20in%20Yammer%20can%20be%20permanently%20deleted%20by%20using%20the%20Yammer%20Developer%20API.%20To%20do%20this%20you%20export%20the%20data%20to%20identify%20the%20data%20that%20needs%20to%20be%20permanently%20deleted%2C%20and%20then%20write%20a%20custom%20PowerShell%20script%20to%20loop%20through%20the%20specific%20items%20to%20delete.%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20use%26nbsp%3BAPI%20to%20export%20the%20soft%20deleted%20messages%2C%20but%20when%20I%20want%20to%20%3CEM%3Epermanently%20%3C%2FEM%3Edelete%20it%2C%20the%20response%20is%20400%2C%20Bad%20Request%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20api%20I%20used%20is%26nbsp%3B%3CSPAN%20class%3D%22definition-url%20ng-binding%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22definition-path%20ng-binding%22%3E%2Fmessages%2F%3Amessage_id%2C%26nbsp%3B%3CSPAN%3E_method%3DDELETE%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22definition-path%20ng-binding%22%3ECould%20you%20give%20me%20some%20suggestion%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22definition-path%20ng-binding%22%3EBest%20Regards%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-792270%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-793763%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20permanently%20delete%20retained%20data%20stored%20in%20Yammer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-793763%22%20slang%3D%22en-US%22%3E%3CP%3EI%20also%20noticed%20the%20same%20for%20the%20REST%20API%2C%20but%20my%20error%20is%20404%20(seems%20contradict%20to%20the%20article%20that%20soft-deleted%20messages%20can%20be%20deleted%20by%20API).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20may%20be%20a%20Microsoft%20Teams%20API%20bug.%20Can%20someone%20from%20Microsoft%20help%20to%20confirm%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor

I am a Yammer network admin, our data retension is Soft Delete, from this link ,

it mentioned: 

Retained data stored in Yammer can be permanently deleted by using the Yammer Developer API. To do this you export the data to identify the data that needs to be permanently deleted, and then write a custom PowerShell script to loop through the specific items to delete.

 

I can use API to export the soft deleted messages, but when I want to permanently delete it, the response is 400, Bad Request;

 

The api I used is https://www.yammer.com/api/v1/messages/:message_id, _method=DELETE

 

Could you give me some suggestion? 

Best Regards

1 Reply

I also noticed the same for the REST API, but my error is 404 (seems contradict to the article that soft-deleted messages can be deleted by API).

 

This may be a Microsoft Teams API bug. Can someone from Microsoft help to confirm?