I wish I could remember exactly what I found to help you.
But if I remember correctly I found a script to remove OneDrive that would first download all of the files locally.
But if I remember correctly I found a script to remove OneDrive that would first download all of the files locally.