Search code examples
microsoft-graph-apionedrive

Can old versions of DriveItems be deleted via the Graph API?


I'm finding that some of my Drive Items have tons of versions and I'd like to clean some of them up.

Is it possible to do this via the Graph API?


Solution

  • Currently the Graph API looks like it only supports list versions, get versions, get contents and restore versions for Versions of a drive item.

    From: https://learn.microsoft.com/en-us/graph/api/resources/driveitemversion?view=graph-rest-1.0

    enter image description here