I’m a new Local user. As the folder for storing site files, I set a OneDrive folder because I need to have access to the project’s files on 3 different computers. Everything was working perfectly until, while adding files in the wp-admin panel, I noticed that when I delete a file and then re-upload it in WP, the file name gets an extra number appended to it as if it were a duplicate — even though I had deleted the previous file and uploaded a new one with the same name. That’s when I saw that the files physically remain in wp-content/uploads.
I tried with a clean WP install, and at first it worked. Then I started looking into whether it might be a configuration or plugin issue on my site.
A test text file uploaded into wp-content/uploads and deleted via PHP works fine — it is removed.
After some time, though, deletion stopped working even on the clean WP. I tried turning sync on and off — no effect.
What’s more interesting, I tried moving the project to a Dropbox folder, and the same thing happened.
When I set any other directory on my disk for site files (other than a Dropbox/OneDrive folder), everything works.
Has anyone encountered this problem? Windows 11.