Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,282 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there Burns, Rusty
Thanks for using QandA platform
Yes, the ggraph API can delete a user's OneDrive. You can automate the deletion of a user's OneDrive .
Use the Graph API endpoint to delete the user's drive:
DELETE /users/{user-id}/drive
while you delete a user's OneDrive, it is moved to the recycle bin, similar to a deleted document.
tis is how you delete.
DELETE https://graph.microsoft.com/v1.0/users/{user-id}/drive
Authorization: Bearer {access-token}
Microsoft Graph API documentation.]
If this helps kindly acceot the answer thanks much,