A Microsoft file hosting and synchronization service.
Instead of deleting files in OneDrive, consider removing them from OneDrive. With folder backup enabled, OneDrive includes the Desktop, Documents, Pictures, Music, and Videos folders. So to remove files from OneDrive, you will also need to avoid these Windows Standard Folders.
Why I Avoid Windows Standard Folders
Manage backup: https://support.microsoft.com/en-us/office/back-up-your-folders-with-onedrive-d61a7930-a6fb-4b95-b28a-6552e77c3057
To avoid sync issues, I use Files On-Demand: https://www.youtube.com/watch?v=UzIA9uykIhE&t=43s