How to Prevent Mass File Deletion in a SharePoint Library
Question details
SharePoint administrators need a way to stop users from deleting excessively large numbers of files at once, without taking away their standard delete permissions.
- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Managing document library permissions and security policies.
- Observed behavior
- Administrators are unable to find a native threshold setting in SharePoint to limit the exact number of files a user is allowed to delete.
Ensure you have global administrator or SharePoint administrator privileges in your Microsoft 365 tenant to access Microsoft Purview and configure compliance settings.
Monitor and Mitigate using Microsoft Purview Alerts and Audit Logs
Since SharePoint does not have a native setting to limit deletion quantities, the most effective workaround is to configure alerts in Microsoft Purview to detect and respond to mass deletions instantly.
While you cannot set a hard numerical limit on file deletions for a user with standard Delete permissions, you can use Microsoft Purview compliance policies to monitor large deletion activities. This allows administrators to intervene quickly and review audit logs to see exactly who deleted files, when, and from where.
Log in to the Microsoft 365 Admin Center and navigate to the Microsoft Purview compliance portal.
Go to Policies > Alert policies. Create a new policy designed to trigger when an unusually high volume of files is deleted by a single user within a short timeframe.
Open the Audit tab in the Purview portal. Search for the 'Deleted file or folder' activity within your desired date range to identify bulk deletion events.
If a mass deletion is detected, navigate to the affected SharePoint site's Recycle Bin to select and restore the deleted items back to their original library.
Implement Retention Policies and Custom Permissions
Protect critical documents from permanent deletion by applying retention policies and creating custom permission levels that separate editing from deleting.
Looking for a Lightweight Document Management Alternative? Try WPS Office
While SharePoint requires complex administrative compliance setups to safeguard files, WPS Office provides a lightweight, highly compatible alternative for everyday document editing and team collaboration. Enjoy a free, user-friendly suite that seamlessly handles Microsoft Office files without extensive administrative overhead.
- 1. Download the App: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install and Sign In: Run the installer and sign in with your free account to unlock seamless cloud syncing and file management features.
- 3. Collaborate Instantly: Open your existing Office documents directly in WPS Office and use the built-in sharing tools to collaborate securely with your team.

Frequently Asked Questions
Can I set a hard limit on how many files a user can delete in SharePoint?
No, SharePoint does not natively offer a setting to restrict the exact number of files a user can delete while they still retain standard Delete permissions. Monitoring via Purview is the recommended Microsoft workaround.
How can I recover files if a mass deletion occurs?
Deleted files are automatically moved to the SharePoint site's Recycle Bin, where they are kept for 93 days. Site administrators can navigate to the Recycle Bin, select the affected files, and click 'Restore' to return them to their original location.
Is it possible to separate edit permissions from delete permissions in SharePoint?
Yes. You can navigate to advanced site permissions to create a custom permission level by copying the standard 'Contribute' or 'Edit' level, and simply unchecking the 'Delete Items' option.




