Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,507 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
can i prevent users form deleting any files they created before on their onedrive?
Generally speaking, no, as they "own" their OneDrive (in other words, each user has Site Collection admin privileges). If the idea is to preserve data for legal requirements, you can put their OneDrive on hold. https://learn.microsoft.com/en-us/purview/retention-policies-sharepoint