Access denied trying to delete local folders sync-ed by OneDrive since version 24.171

Adrian POP 30 Reputation points
2024-09-30T17:00:23.9466667+00:00

Hello,

Since some days we started having problems with various applications which use folders located under the sync-ed OneDrive folder. Suddenly the applications started not being able to delete empty folders and the reported reason is "Access is denied" despite permissions being OK.

The OS is Windows 10 (19045.4894) and all this seemed to have started around the 19th of September, and it seems to be related to the newly installed 24.171 version of OneDrive.

After some trial and error, we were able to consistently reproduce the issue using a simple .bat file and we can prove that everything works correctly if we downgrade to version 24.156.

We also tried the last version from the preview channel (24.195.0926.0001) in the hope that some fixes were implemented meanwhile, but the problem still persists.

Do you know of any changes implemented between 24.156 and 24.171 which could cause the above problems?

If useful we can test some more in between versions to more closely identify the version when the problem first appeared.

Regards,

Adrian

User's image

User's image

test.bat.txt

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,138 questions
0 comments No comments
{count} vote

Accepted answer
  1. Emi Zhang-MSFT 25,546 Reputation points Microsoft Vendor
    2024-10-01T06:00:29.7566667+00:00

    Hi,

    It is recommended that you give a feedback to Microsoft about the update problem:

    https://support.microsoft.com/en-us/windows/contact-onedrive-support-2b61e3d8-6f23-4d67-b671-79638add0335

    Microsoft values your opinion. Your feedback goes directly to our engineers and helps us shape the future of Microsoft products and services for all our users.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Adrian POP 30 Reputation points
    2024-10-02T13:44:54.1233333+00:00

    FYI: the problem was apparently fixed in the 24.197.0930.0001 Insiders Version released on the 1st of October.

    https://hansbrender.com/all-onedrive-versions-windows/

    User's image

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.