A Microsoft file hosting and synchronization service.
If you scroll down to the last file in the recycle bin and select it while holding down the shift key, you might be able to tick all the files in the recycle bin.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a script which has been capturing photos every 10s to create timelapse movies every day.
I also have a script to remove all the .jpgs older than 1 month which works - but it puts them in the OneDrive recycle bin.
But, if you go to OneDrive and chose 'empty recycle bin' it only empties what is displayed on the page, which is maybe 100 files. There are 8460 per day!
There appears to be no way to delete 10s of thousands of files - which is a real problem as my 1TB of space is 95% full...
A Microsoft file hosting and synchronization service.
If you scroll down to the last file in the recycle bin and select it while holding down the shift key, you might be able to tick all the files in the recycle bin.
Perhaps you should not be syncing your Pictures folder to OneDrive if those .jpgs are stored there. OneDrive is probably not a good place to keep these files. They need to be zipped into a compressed archive, then placed in OneDrive.
Try using PowerShell. As per https://www.sharepointdiary.com/2019/04/empty-recycle-bin-onedrive-for-business-powershell.html
When you have more than 5000 items in your recycle bin, both the UI method and PowerShell above may fail with the “Threshold exceeded” error message. So, Here is how to clear recycle bin items in batches:
# Install the module if not already installed
# Install-Module PnP.PowerShell
# Set your user URL and credentials
$siteUrl = "https://tenant-my.sharepoint.com/personal/username_domain_com"
Connect-PnPOnline -Url $siteUrl -Interactive
# Clear the entire recycle bin (1st and 2nd stage)
Clear-PnPRecycleBinItem -All -Force
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
OneDrive recycle bin bulk deletion is limited in the mobile apps and in some views, but large-scale deletion is supported via the web interface and by fully emptying the recycle bin rather than only deleting visible items.
To clear very large numbers of items:
If using mobile apps (Android/iOS), there are per-operation limits:
After emptying the recycle bin, there can be a short delay before the freed space is reflected in the storage quota.
If deletion still appears partial, check for:
References: