A Microsoft file hosting and synchronization service.
Hi David,
Thank you for sharing the detailed information.
The exclusion policy appears to be working, as the folders are marked as Excluded and their contents are not uploaded. However, the available documentation does not confirm whether excluded folders should be completely ignored by the sync engine or whether local changes may still be enumerated.
I am not aware of a supported setting that prevents OneDrive from watching these folders entirely, or a supported method to selectively remove already-tracked excluded items from the local sync database. Manually deleting the database or ODL files would not be recommended.
For now, keeping high-churn folders such as .venv, node_modules, and Cargo target outside the OneDrive sync root is the safest workaround.
Given the reproducible log growth and performance impact, this would be best investigated through a Microsoft Support request. If you have access to the Microsoft 365 admin center, you can open one directly. Otherwise, please ask the IT team or administrator managing the tenant to open one on your behalf and include the relevant ODL logs, reproduction timestamps, OneDrive version, and policy configuration.
Regarding a user-level .gitignore-style option, the announced folder-exclusion feature is administrator-managed. I am not aware of a confirmed user-managed ignore-file feature at this time.
- For detailed guidance on how to open a support ticket with Microsoft Support, please refer to: Get support - Microsoft 365 admin | Microsoft Learn
- In case you do not know who is your IT admin, kindly refer to this article: How do I find my Microsoft 365 admin? - Microsoft Support
I hope this helps move the case forward. Should you have any further questions or need additional assistance, please feel free to share them in the comments below. I will be happy to help.
If the answer is helpful, please click "Yes" and kindly upvote it.
Note: Follow the steps in the forum documentation to enable email notifications if you want to receive email notifications related to this topic.