Delete the parent folders through the OneDrive Windows sync folder; if this is a work or school account with retention enabled, the administrator must address the retention policy because OneDrive intentionally requires the retained contents to be removed first.
Bulk-delete through Windows
This avoids manually opening every subfolder:
- Open File Explorer.
- Open OneDrive – Personal or OneDrive – your organization.
- Navigate to the parent folder containing the folders to remove.
- Select all unwanted folders:
- Use Ctrl+A if everything at that level can be deleted.
- Otherwise, hold Ctrl while selecting individual folders.
- Press Delete and allow OneDrive to synchronize the deletion.
Deleting a synced parent folder removes that folder and its contents from both the PC and OneDrive. OneDrive may display a confirmation when many items are deleted at once; approve it so the cloud deletion proceeds.^1^
Warning: Check the selection carefully. If any selected content is shared, deleting it makes it unavailable to everyone. Leave the items in the OneDrive recycle bin until satisfied that nothing important was removed.
After synchronization finishes:
- Check OneDrive on the web to confirm the folders disappeared.
- Open Recycle bin.
- Permanently delete the items only if recovery is no longer required. Storage reporting may take a short time to update after the recycle bin is cleared.^1^
If Windows reports a large-deletion warning
For managed Windows devices, an organization can require confirmation for large cloud deletions. If confirmation is not provided within seven days, the files are not deleted. Complete the confirmation shown by the OneDrive sync client rather than repeating the operation.^2^
If the folder still cannot be deleted
The screenshot’s message—“You have to delete all the items in this folder before you can delete the folder”—matches a documented distinction:
- Personal OneDrive: A folder does not normally need to be empty before deletion.
- Work or school OneDrive with retention enabled: The folder must be emptied before it can be deleted.^1^
If the Windows deletion fails with the same message, send the screenshot and folder path to the Microsoft 365 administrator and ask them to check:
- Whether a retention policy, retention label, record declaration, or eDiscovery hold applies to those files.
- Whether any items are checked out.
- Whether the account has permission to delete all content in the affected folder.
- Whether an administrator can remove the affected items after confirming the organization’s retention requirements.
Microsoft documents retention policies as a cause of blocked folder deletion; files subject to retention must first be moved or deleted as permitted by that policy. Administrators can also use SharePoint PnP commands for complex deletion cases, but that does not override compliance requirements.^3^
Do not ask the administrator merely to “force delete” the folders without reviewing retention. Microsoft 365 retention settings take precedence over the normal OneDrive deletion process, and an eDiscovery hold can prevent deletion until the hold is removed.^4^
References
- [Windows](#tab/windows)
- IT Admins - Use OneDrive policies to control sync settings
- Unable to delete items in SharePoint and OneDrive
- OneDrive retention and deletion