Unable to Delete document using One drive API in C#

Pradyut Sinha 21 Reputation points
2023-01-31T19:35:29.9833333+00:00

I am unable to delete a document by using one drive API in ASP.Net(c#) if the document is open.

How to check the document is already open by using one drive API.

Please help.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,221 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,500 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,137 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,861 Reputation points
    2023-02-13T09:38:48.3533333+00:00

    Hi @Pradyut Sinha since currently there is no properties to describe the status of the file to check if the file is being edit or opened, so I suggested to submit a feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.