Is Retention period applicable when using Microsoft Graph API

Allan Fernandes 166 Reputation points


I am a developer and I have a backup application that compresses data from a user's machine and stores it onto his Onedrive on the Cloud using Microsoft Graph API. My users have either E3 licenses/M365/O365 licenses etc.

I wanted to know if the files that my application has compressed and copied onto your cloud will be deleted internally due to the Retention Policy ?


A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,225 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 91,446 Reputation points MVP

    There's no default retention policy, so generally they will not be removed. An Office 365 admin however can always configure a retention policy that will affect this though, and there's nothing you can do to avoid it.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Baker Kong-MSFT 3,791 Reputation points

    Hi @Allan Fernandes ,

    By default the files won't be removed as long as their accounts are not deleted. Administrator could set up retention policies for SharePoint sites and OneDrive accounts, which may affect the retention period, no matter you upload files to the cloud through Graph API or browser UI.

    Best Regards,
    Baker Kong

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments