> Every playbook: https://protuno.com/playbooks.md · Site map for AI agents: https://protuno.com/llms.txt

# Unused & Duplicate Media Report

Reads your media library and lists duplicate image files and images WordPress shows no use of, with the space they take. Anything unclear counts as used. It deletes nothing.

- Agent: Dash (Performance)
- Steps: 4
- Changes the site: no, it only reads
- Backup: Only reads, so it takes no backup and needs none.
- Connector: No connector needed
- You get: A written Markdown report of duplicate files and possibly unused images, with sizes, what was checked and what was not.
- Looks at: Your media library images; Where WordPress shows each image in use; Duplicate files and the space they take
- Page: https://protuno.com/playbooks/unused-duplicate-media-report
- Ask: "Dash, run Unused & Duplicate Media Report on my site."

## Steps

1. **Media Inventory And Duplicates**: Lists up to 400 images, finds files that are copies of each other, and reads your active theme, page builders, logo and site icon.
2. **Bulk Reference Check**: Marks an image as used when its featured image, logo, icon, widgets, classic galleries or custom theme parts show it in use.
3. **Name Search Check**: Searches posts, pages and reusable blocks, drafts included, for the name of each image not yet shown in use. At most 25 images per run.
4. **Media Cleanup Report**: Writes the report with duplicate files, images that are possibly unused, what was not checked and the space involved.

## Good to know

- Runs when you ask for it in your AI app. On Pro and Agency you can also put it on a routine.
- Needs no connector.
- Only reads: it does not edit your site and deletes nothing.
- Reads up to 400 images, in upload order. If you have more, the report says the rest were not read.
- An unclear case counts as used. An image is only called possibly unused when WordPress shows no use of it in the places checked.
- Space is at least the size of the original files. Thumbnails are not counted.
- Page builder data, custom fields, theme files and CSS, menus and links from other sites are not scanned.

## How to run it
In an AI app connected to Protuno: `ask_agent` with the site and "Unused & Duplicate Media Report", then `propose_agent_plan`. In Approval mode, ask the user to press Approve in Protuno; in Auto mode the run starts when you propose it.
