Let’s use Microsoft OneDrive on Mac - App “OneDrive”

App “OneDrive” - ​​enable (turn on) files on demand

Get the most out of Files On-Demand With Files On-Demand, you can mark files in OneDrive as online-only and free up space on your computer. To mark files as online-only, you must enable the OneDrive Finder extension.