msgraph-beta-sdk-dotnet icon indicating copy to clipboard operation
msgraph-beta-sdk-dotnet copied to clipboard

Missing method for permanently delete item from directory object

Open Edgarus79 opened this issue 1 year ago • 1 comments

According to the documentation of Microsoft Graph REST API Beta, there is a method to permanently delete applications users and groups: DELETE https://graph.microsoft.com/beta/directory/deleteditems/{id} However it's missing in latest Microsoft.Graph.Beta (5.63.0-preview) image Can someone please confirm that method is missing or maybe it has been moved.

Edgarus79 avatar Jan 29 '24 12:01 Edgarus79

Thanks for raising this @Edgarus79

This looks to be a metadata issue affecting the beta metadata and should be resolved via https://github.com/microsoftgraph/msgraph-metadata/issues/566

andrueastman avatar Jan 30 '24 07:01 andrueastman

Hello, @andrueastman any update on this?

The issue seems to still appear in the latest version of the library

Friendry606 avatar Jun 20 '24 13:06 Friendry606

Closing this one for now as it is possible to call in the latest version at https://www.nuget.org/packages/Microsoft.Graph.Beta/5.78.0-preview

await graphClient.Directory.DeletedItems["item-id"].DeleteAsync();

andrueastman avatar Jun 25 '24 12:06 andrueastman