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_
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
Deletemethod ought to be removed fromTeamsso as to avoid confusion.Debug output
Click to expand log
```