I've got a couple of files (empty directories) in the Trash I can't delete. I own them, the mode is 777 and whether I use Empty Trash or use rm from the command line (with sudo or running as root) I get "Permission denied". I tried booting into recovery mode and setting csrutil to disabled but that did nothing. Any ideas? It's not the end of the world but every time I empty the trash I have to deal with the dialog box about not being able to delete them.
That's the nasty thing with OneDrive: Usually, your file that you have created is on your computer. So this is considered as "original". A copy of that file is then uploaded into the cloud.
With OneDrive it is reversed. The file you created on your computer probably is saved to OneDrive immediately, making this the original file. On your computer there is just a copy that acts as an alias.
If you have Microsoft Office as a stand-alone version (e.g. home or student version) installed on your computer, go settings and look where you can change that files are saved onto your computer in order to avoid this in the future (this might not be an option if you use Office 365, as they do not support to change the save location any longer, as far as i recall).