microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Remove-MgGroupConversation does not work

Open
#3,420 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Service issue type:bug
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Describe the bug

I am trying to use the Remove-MgGroupConversation command to remove an email from a M365 group mailbox.
I have the proper permissions, however I get the error "ConversationID isn't supported in the context of this operation."

Image
Expected behavior

Email should be deleted and a "HTTP/1.1 204 No Content" should be returned as stated here: https://learn.microsoft.com/en-us/graph/api/group-delete-conversation?view=graph-rest-1.0&tabs=http

How to reproduce

Execute the command with the "-groupid" and "-conversationid" switches.

SDK Version

2.30.0

Latest version known to work for scenario above?

N/A

Known Workarounds

N/A. Calling the graph API directly with a HTTP request or in the graph explorer generates the same reply.

Debug output

Remove-MgGroupConversation_Delete: ConversationId isn't supported in the context of this operation.

Status: 400 (BadRequest)
ErrorCode: ErrorInvalidOperation
Date:

Headers:
Cache-Control : private
Strict-Transport-Security : max-age=31536000
request-id : 717d975e-f807-4edb-8ca7-31d74a1e4fbe
client-request-id : d79542b9-5680-4873-8be1-9a34cb9b72b1
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"North Central US","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"CH01EPF00077FDB"}}
Date : Thu, 16 Oct 2025 13:41:37 GMT

Recommendation: See service error codes: https://learn.microsoft.com/graph/errors

Configuration

Name Value


PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Other information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Remove-MgGroupConversation with the -groupid and -conversationid switches on SDK version 2.30.0, then compare the cmdlet request with the linked Microsoft Graph group-delete-conversation documentation. The direct HTTP and Graph Explorer results should help determine whether the issue is in the SDK or the service; done means the documented deletion returns HTTP 204 or the limitation is clearly identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.