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

Adrian POP 40 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

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Emi Zhang-MSFT 30,126 Reputation points Microsoft External Staff
    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.


4 additional answers

Sort by: Most helpful
  1. Tim Moore 10 Reputation points
    2025-06-10T10:47:48.4666667+00:00

    Problem is still occurring with OneDrive 25.091.0512.0001 (64-bit)

    2 people found this answer helpful.

  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

  3. Adrian POP 40 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


  4. Ivo Tenev 0 Reputation points
    2025-07-27T16:33:05.27+00:00

    deleted..........

    0 comments No comments

Your answer

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