Hi @Sajith Gopalakrishnan Hema
When you open an online-only file, it downloads to your device and becomes a locally available file. You could open a locally available file anytime, even without Internet access. This is by default, we could change the file back to online only. Just right-click the file and select “Free up space.”
With Storage Sense turned on, these files will become online-only files after the time period you've selected.
For more information, you could refer to:
https://support.microsoft.com/en-us/office/use-onedrive-and-storage-sense-in-windows-10-to-manage-disk-space-de5faa9a-6108-4be1-87a6-d90688d08a48
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.