Unable to Delete Local Onedrive files after uninstalling onedrive

Andrew Stanton 0 Reputation points
2026-11-10T21:30:22.54+00:00

I am using MacOS 27.2.1. I had a OneDrive account with my employer. I am no longer with that employer, and would like to recover the disk space being used by local copies of OneDrive files (170GB). I unlinked the account and deleted the OneDrive application and restarted. The files are still there in the /CloudStorage/Onedrive folder. I attempted to delete it and drag it to the trash, but I couldn't (No error message.) I rebooted in safe mode and tried again. Still no success. How can I rid myself of these files?

Microsoft 365 and Office | OneDrive | Other | MacOS
0 comments No comments

Answer accepted by question author

AI answer

2026-11-10T21:31:44.59+00:00

Open the former OneDrive folder in ~/Library/CloudStorage and use Finder’s Delete button if macOS identifies it as a stale File Provider location.

Remove the stale folder through Finder

  1. In Finder, select Go > Go to Folder.
  2. Enter:
       ~/Library/CloudStorage
    
  3. Open the folder belonging to the former employer.
  4. Look at the top of the Finder window for a message saying that the associated OneDrive application cannot be found.
  5. If that message includes Delete, click it. Microsoft documents this button as the removal method for a folder belonging to a previous OneDrive version that is no longer installed.^1^
  6. Empty the Trash only after checking that the folder contains nothing you need. Any files stored only locally will be permanently lost.

You have already unlinked the account, uninstalled OneDrive, restarted, and tested Safe Mode, so repeating ordinary Finder deletion is unlikely to add anything.

If Finder does not show Delete

A closely matching case involving undeletable OneDrive folders under CloudStorage was resolved by running the OneDrive uninstall a second time, after which Finder allowed the remnants to be deleted.^2^

Because OneDrive is already gone:

  1. Reinstall the current OneDrive for Mac application.
  2. Do not reconnect the inaccessible former-employer account.
  3. Remove OneDrive again by dragging Applications > OneDrive to the Trash—the documented macOS uninstall action.^3^
  4. Restart the Mac.
  5. Return to ~/Library/CloudStorage, open the old folder, and check again for the Finder Delete button or try moving the folder to the Trash.

This is a case-reported workaround, not a guaranteed cleanup mechanism.

If it remains locked

Do not use sudo rm -rf or manually delete File Provider databases. The folder may be an orphaned macOS File Provider entry rather than an ordinary directory, and unsupported forced deletion can affect other cloud-storage providers.

Contact Apple Support and ask them to investigate an orphaned File Provider domain under ~/Library/CloudStorage after its provider application was removed. Include these facts:

  • The work account was unlinked.
  • OneDrive was uninstalled.
  • Restart and Safe Mode deletion both failed.
  • Finder provides no error and, if applicable, no Delete banner.
  • The folder accounts for approximately 170 GB.

The closely matching case also involved Apple Support before the additional uninstall released the Finder entries.^2^


References

  1. Why do I have two versions of OneDrive on my Mac? | Microsoft Support
  2. OneDrive for Mac: 3 residual CloudStorage folders impossible to delete after full uninstall — "Resource deadlock avoided" (macOS Tahoe 26.3.1) - Microsoft Q&A
  3. Turn off, disable, or uninstall OneDrive | Microsoft Support
AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. SD - IA 183.1K Reputation points Independent Advisor
    2026-11-11T02:28:23.1466667+00:00

    Hi,

    Try using Omnidisk to find the largest files and delete from there:

    https://www.omnigroup.com/more

    Standard 3rd party link disclaimer:

    There may be links to non-Microsoft websites that provide accurate and safe information. Watch out for ads on websites frequently classified as PUP (Potentially Unwanted Products). There is no need to buy paid products to fix your computers, as they sometimes do more harm than good.

    Was this answer helpful?

    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.