A Microsoft file hosting and synchronization service.
Hello
If you go to the OneDrive settings to turn off OnDemand, it will indeed keep every file, no matter which device it was synced from, to your local computer.
If you want to only keep the files locally for those synced from said device, you will have to do it manually. Go through each folder, sort by the status. If it is this icon , it is synced from this device. If it is a cloud icon, then it is synced from a different device.
I know going through these manually can be taxing.. but unfortunately I cannot think of a different way.