Bulk deletion in SharePoint is straightforward for small batches but becomes impractical at scale. When you need to remove hundreds or thousands of files across multiple libraries and sites, the native browser interface makes you select and delete one loaded batch at a time. This guide covers three approaches in order of scale: browser multi-select for small batches, filtered views for targeted categories, and a dedicated desktop tool for large operations.
Permissions required
The permissions needed to delete files in SharePoint depend on the scope:
- Single files in a library: Contribute permission or higher on the library. The site's default Members group has Edit, which includes it, so members can delete files they have access to.
- Files across the entire site: Site Collection Administrator, who can reach every library. A site owner with Full Control can be locked out of a library or folder whose unique permissions leave the Owners group off.
- Files across multiple sites: You need at least Owner or Full Control access to each site. The SharePoint Administrator role does not open site content by itself, but it lets you make yourself a site collection admin on any site, which is how tenant-wide cleanup is usually done.
Check your permissions before starting a large cleanup. Attempting to delete files you do not have access to will fail silently in some tools and produce errors in others.
Step 1: Browser UI selection (one loaded batch at a time)
The document library interface in SharePoint supports multi-select deletion directly from the list view. This is the right approach when you know which specific files to remove and the total count is manageable.
- Open the document library containing the files.
- Switch to List or Compact list using the view options in the top-right corner. Tiles view is awkward for selecting many files.
- Click the checkbox in the column header to select every item loaded in the view.
- Click Delete in the command bar, or press the Delete key.
- Confirm the deletion in the dialog that appears.
- Scroll down to load more items and repeat.
The browser approach works well for single-library cleanup involving up to a few hundred files. Beyond that, the batch-by-batch workflow becomes time-consuming. Use the filtered view approach or the Space Master tool for larger operations.
Step 2: Filtered views for category-based deletion
When you want to delete a defined category of files (for example: all PDFs older than a specific date, all files created by a former employee, or all files under a certain size threshold), a filtered library view lets you surface exactly those items before selecting and deleting them.
- Open the library and go to Settings (the gear), Library settings, then More library settings if offered.
- Under Views, select Create view and choose Standard View.
- Scroll to the Filter section in the view settings. Add one or more conditions, for example:
- File Type is equal to pdf
- Modified is less than [date]
- Created By is equal to [name]
- File Size is less than [bytes]
- Save the view and switch to it. Only matching items appear in the list.
- Select all loaded items and delete, repeating until the filtered view is empty.
- Delete the custom view once the cleanup is complete.
The filtered view approach works well when you can describe the target files with column conditions and the total count does not run into the tens of thousands. For very large libraries the selecting is still manual, and a filter on a column that is not indexed can hit the 5,000-item list view threshold; the Space Master tool below removes the manual part.
Step 3: Space Master Bulk Delete for large-scale operations
For removing thousands of files from a library in a single operation, ShareMaster's Space Master includes a Bulk Delete File & Items tool. It calls the SharePoint API directly from the desktop application, pages through the library in batches instead of loading a browser view, and works through the whole library or a folder you choose. Each run covers one library or list, so a cleanup spanning several libraries is one run per library.
The tool is suited to scenarios such as:
- Pre-migration cleanup where you want to remove obsolete content before transferring a library to a new site.
- Post-project cleanup where a project site's working documents need to be removed in bulk after archiving.
- Storage reclaim operations where a project archive or a folder of raw exports has outlived its purpose.
- Decommissioning operations where a site is being retired and its content removed before the site itself is deleted.
- Open ShareMaster, go to Optimize Storage (Space Master) and select Bulk Delete File & Items.
- Connect to the site that holds the files.
- Pick the library, and navigate into a folder if you only want to clear that folder.
- Optionally set Exclude files and items created after and Exclude files and items modified after to keep recent content. These two dates are the only filters, so the scope is the library or folder you picked, minus anything newer than those dates.
- Decide whether to tick Include folder removal as well. Folder removal takes every file inside a folder, whatever its dates.
- Leave Send to recycling bin ticked unless you are certain. Unticked, items are permanently deleted and cannot be restored from the bin.
- Confirm and run. Progress is displayed in real time, and any item that cannot be removed is reported as an error in the run log.
- After the delete completes, proceed to the next step to clear the Recycling Bin.
Step 4: Empty the Recycling Bin to reclaim storage
After a bulk delete that recycles, the removed files sit in the site's first-stage Recycling Bin. They still count against your storage and can be restored by site members until the bin is cleared. This is intentional: it gives a recovery window after accidental deletion.
When you are confident the deletion was correct and you need to reclaim the storage:
- Open the first-stage Recycle bin in the affected site (Site contents > Recycle bin).
- Select all items from the deletion and click Delete, or click Empty recycle bin to clear everything. This moves them to the second-stage bin; it does not free the space yet.
- Click Second-stage recycle bin at the bottom of the page (site collection admins only) and delete or empty there as well.
For cleanup across many sites, ShareMaster's Recycle Master includes Bulk Empty Recycle Bins, which empties the bins of the site collections you select in a single operation, and the second stage too when Include second stage is ticked. It needs a SharePoint Administrator account and avoids visiting each site's Recycle bin page individually.
Cleaning up empty folders after a bulk delete
Deleting files often leaves behind the folder structure that contained them. Empty folders do not consume significant storage, but they create confusion in the library and make navigation harder. ShareMaster's Space Master includes an Empty Folder Remover tool that works down through a library, or a folder you pick in it, and sends every folder with no files or subfolders left to the recycle bin in a single pass. Run it after a large file delete to leave the library in a clean state.
Bulk deleting entire sites
If the goal is to remove a whole site collection rather than files within a site, that is a separate operation. The SharePoint admin center allows deleting individual site collections from the Active Sites list. Space Master's Bulk Delete Sites tool extends this to multiple sites in a single job, which is useful when decommissioning a set of project sites after a migration or consolidation. Where a site belongs to a Microsoft 365 group, it deletes the group as well, so check for a connected team first. See the Space Master overview for details on that workflow.
Verifying the result
After a large cleanup, two checks are worth making:
- Storage report. Run the Site Storage Metric report in Report Master before and after to confirm how much the library shrank, and check the site's storage figure in the admin centre once the recycle bin is empty. The before-and-after numbers document the outcome for stakeholders.
- Permissions review. If the deleted files lived in libraries with unique permissions, review those permissions after cleanup. ShareMaster's Share Link Finder reports the shared links and unique permission assignments left in a library, which may no longer be needed once the content is gone.
Summary
For small, specific batches: use the browser library view with multi-select. For files that share a common attribute (type, date, author): build a filtered view first, then select and delete from it. For whole libraries or folders: use Space Master's Bulk Delete File & Items tool to run the job without selecting batch after batch in the browser. In all cases, empty both stages of the Recycling Bin after the deletion is confirmed to reclaim the storage.