Stop files from going to OneDrive using multiple methods. One, go to OneDrive settings > two, Task Bar > three Pause Syncing. Configure file on-demand features.