Comments on: Practical Graph: Clean Out Messages from a Team Channel https://practical365.com/remove-channel-messages/ Practical Office 365 News, Tips, and Tutorials Thu, 08 Aug 2024 22:03:21 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_297699'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_297699"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/remove-channel-messages/#comment-297699 Thu, 08 Aug 2024 22:03:21 +0000 https://practical365.com/?p=60482#comment-297699 In reply to Christian.

Actually, the script looks for ChannelMessage.ReadWrite, which is one of the scope permissions listed. Maybe your session didn’t have this permission?

I’m not sure why the script can’t delete posts by unknown users or apps. That seems strange. But again, did your session have ChannelMessage.ReadWrite?

]]>
By: Christian https://practical365.com/remove-channel-messages/#comment-297698 Thu, 08 Aug 2024 21:56:23 +0000 https://practical365.com/?p=60482#comment-297698 I added a comment on github, but when I removed the silentlycontinue command I got an error that the command needed ChannelMessage.Read.All API permissions as well. This helped.

The issue I see is that it doesn’t seemt to delete posts by UU (old users) and posts by Apps like Trello which are no longer in use.

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_294069'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_294069"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/remove-channel-messages/#comment-294069 Tue, 14 May 2024 22:28:41 +0000 https://practical365.com/?p=60482#comment-294069 In reply to Saqer.

Ah, this is an Edu tenant… I don’t know anything about Edu tenants except that they can be different to commercial tenants. I don’t have access to an edu tenant so I can’t debug the issue.

]]>
By: Saqer https://practical365.com/remove-channel-messages/#comment-294064 Tue, 14 May 2024 20:24:32 +0000 https://practical365.com/?p=60482#comment-294064 In reply to Tony Redmond.

yes i am the Admin..
i even tried by using the teacher account himself…and got the same message…

note: i added a post using the Admin account, and the script deleted this post only successfully, but the teacher posts & students replies still not deleted…!
any hints plz

]]>
By: Tony Redmond https://practical365.com/remove-channel-messages/#comment-294038 Tue, 14 May 2024 07:42:56 +0000 https://practical365.com/?p=60482#comment-294038 In reply to Saqer.

Maybe you didn’t have the permission to remove messages? Are you a team owner?

]]>
By: Sez https://practical365.com/remove-channel-messages/#comment-294031 Tue, 14 May 2024 04:01:20 +0000 https://practical365.com/?p=60482#comment-294031 I also get
You selected channel number 1 – General
Checking messages in the General channel…
Removing messages… please wait
All done 0 messages and 1 replies removed from channel

]]>
By: Saqer https://practical365.com/remove-channel-messages/#comment-294025 Tue, 14 May 2024 02:10:17 +0000 https://practical365.com/?p=60482#comment-294025 i got:

You selected channel number 1 – General
Checking messages in the General channel…
Removing messages… please wait
All done 0 messages and 1 replies removed from channel

and the messages not deleted..!!

]]>
By: Kevin https://practical365.com/remove-channel-messages/#comment-293693 Thu, 09 May 2024 06:16:42 +0000 https://practical365.com/?p=60482#comment-293693 This is an awesome little script. We have only had one request to clean up a channel conversation.Most times the old team is destroyed and a new one created.

I have tested it in our environment without issue so far and am modifying it accordingly to warn that all messages in the selected channel will be permanently deleted.

]]>