I am using VScode on a Mac, and the folder was opened from onedrive. every time I want to delete a file from VScode, it is actually moved to the root directory of onedrive. With the details explained below:
This is my onedrive folder:
This is the VScode interface, the folder "python_scripts" was opened from onedrive:
When I want to delete the folder "an_example":
After I deleted it, the folder disappeared from "python_scripts", but show up in the onedrive root directory. Basically it is moved instead of deleted.
I tried on a windows PC, no problems there. And I also tried with a local folder instead of onedrive, still no problem. Seems like it is just the problem on a Mac with onedrive. BTW, this is a onedrive account from university, not sure if that matters.