Getting 400 Bad request API not Found when try to permanent delete drive item

Prabhu Rout 0 Reputation points
2024-05-23T06:34:15.19+00:00

https://graph.microsoft.com/v1.0/me/drives/95c19e6ada703c2b/items/95C19E6ADA703C2B!384/permanentDelete

I am experiencing an issue while sending a POST request to the API endpoint. The request results in a "Bad Request" error, stating that the API was not found. However, when I use different drive and item IDs, the request works fine and returns a 204 status code. Both accounts involved are personal accounts.Is there a specific reason for this discrepancy?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,105 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 39,021 Reputation points
    2024-05-23T07:32:56.2366667+00:00

    Hi @Prabhu Rout

    Remove /me endpoint, it will be able to work for you.

    like this:

    2133bd61-3448-4104-94a7-ef2557de25ed

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

  2. Prabhu Rout 0 Reputation points
    2024-05-24T06:13:31.95+00:00
    0 comments No comments