How to Find Which SharePoint Pages Use Stored Images
Question details
A business unit needs to determine if images stored in a custom SharePoint folder are actively used on any pages or elsewhere in Microsoft 365 before permanently deleting them.
- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Cleaning up a custom image folder containing many similar versions without breaking existing SharePoint pages.
- Observed behavior
- SharePoint lacks a simple built-in report for tracking image dependencies across an environment, making manual investigation of custom folders difficult.
Before attempting to delete any stored images, consider restricting the permissions to the custom image folder or moving the files to an archive site to see if any active pages break, rather than deleting them permanently.
Use PowerShell or Microsoft Graph to Query Image Usage
Since SharePoint does not offer a native user interface for dependency tracking, utilizing custom scripts is the most reliable method to scan an environment for specific image URLs.
SharePoint does not provide a direct way to track image usage across an entire environment. Deleting images can break pages that reference them. Because standard UI reports do not exist for this scenario, automation is required.
Compile a list of the exact web paths for the images stored in your custom SharePoint folder that you wish to investigate.
Use the PnP PowerShell module or Microsoft Graph API to iterate through all the Site Pages in your SharePoint environment.
Configure the script to extract and read the canvas content and image web parts of each page, searching for matches to your target image URLs.
Output the script findings into a CSV file or a Power BI dashboard to map which specific pages are currently rendering the stored images.
Manually Review Site Assets for Standard Image Usage
Understand how SharePoint natively stores page images to deduce if your custom folder images are actively used or simply redundant backups.
Looking for a Simpler Document Management Solution? Try WPS Office
Managing complex enterprise environments like Microsoft SharePoint can be overwhelming due to advanced administrative requirements. If you are looking for a free, lightweight, and user-friendly office suite with seamless local and cloud file management, WPS Office provides an excellent alternative.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install WPS Office: Follow the on-screen prompts to complete the quick and lightweight installation process.
- 3. Open Your Documents: Launch WPS Office and immediately open your existing Microsoft Office files with perfect formatting retained.

Frequently Asked Questions
Can I rely on the last-modified date to see if a SharePoint image is used?
No, the last-modified date is not a reliable indicator of usage. It only reflects when the image file itself was uploaded or last edited, not when a page referencing the image was viewed or updated.
Where are images normally stored when uploaded to a SharePoint page?
By default, images uploaded directly via the modern SharePoint page editor are stored in the 'Site Assets' library, automatically organized into folders named after the specific pages they appear on.
What happens if I delete an image that is currently referenced by a SharePoint page?
Deleting an actively used image from its storage folder will instantly break the reference, causing the SharePoint page to display a broken link or a missing image icon to all visitors.




