graphServiceClient.Teams[teamId].Delete results in HTTP 405
Maintainers usually reply within 4 days
@MIchaelMainer is already working on this.
Since Apr 27, 2026.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
I'm trying to delete a Team using
await graphServiceClient.Teams[teamId].DeleteAsync().ConfigureAwait(false);
It results in an exception that tells me the server returned HTTP 405.
Expected behavior
The Team gets deleted.
How to reproduce
Run the above code line with an existing graphServiceClient.
SDK Version
5.103
Latest version known to work for scenario above?
No response
Known Workarounds
use await graphServiceClient.Groups[teamId].DeleteAsync().ConfigureAwait(false);
Given that the REST API doc states you need to target the /groups endpoint, I think the Delete method ought to be removed from Teams so as to avoid confusion.
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- Dominant language
- XSLT
- Stars
- 166
- Forks
- 55
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 9
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-metadata
-
ToTriage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
microsoftgraph/msgraph-metadata#1217 ·
Maintainers usually reply within 4 days
-
ToTriage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoftgraph/msgraph-metadata#1192 ·
Maintainers usually reply within 4 days
-
ToTriage
Difficulty 3/5 1-2 days Newbie friendliness 72/100
microsoftgraph/msgraph-metadata#1193 · 2 comments ·
Maintainers usually reply within 4 days
-
ToTriage
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoftgraph/msgraph-metadata#1169 · 1 reaction ·
Maintainers usually reply within 4 days
-
ToTriage
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoftgraph/msgraph-metadata#1166 ·
Maintainers usually reply within 4 days