In order to change the default retention period in OneDrive For Business (ODFB), we have to access the ODFB Admin Center and them click on “Storage”. In this section we can change the default 30 days retention period to another value as long as is not greater than 10 years:
+ Information: https://docs.microsoft.com/en-us/onedrive/set-retention