Can't delete a managed device

PILLON Mael 0 Reputation points
2024-01-23T08:44:55.3833333+00:00

Describe the bug

Hello, I'm working with c# SDK on v1. I'm getting an error whenever I try to delete a manaed device using this line (tried with different managed devices:

await _graphClient.DeviceManagement.ManagedDevices[deviceId].DeleteAsync();

The exception thrown hasn't any error message. The exception is due to an error returned by the API.

Error message

Excepted behaviour

The managed device to be deleted or an explicit error message

Additional context

I'm using Graph Api via ea client connection, then I can't try on Graph Explorer or Azure. Thanks!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,010 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,977 questions
{count} votes