Using the Microsoft Graph to Archive SharePoint Online Files

File-level archiving with the Graph APIs.

This article discusses how to list files archived using the SharePoint Online file-level archiving feature. We also discuss how to archive and unarchive files using the Microsoft Graph PowerShell SDK and Graph API requests. As it turns out, the drives API is the best way to find (list) archived or unarchived files, while archiving files that haven’t been modified in a while is easy with a few lines of PowerShell.

How File-Level Archiving Works for SharePoint Online

SharePoint Online File-Level Archiving.

SharePoint Online supports file-level archiving, meaning that you can send individual files (most types) to Microsoft 365 Archive to be held in cold storage. Individual users can make the decision about what files need to be online instead of forcing administrators to decide whether to archive complete sites. If needed, archived files can be retrieved, but it might take 24 hours for this to happen.