shopify-admin-file-storage-audit

Identify orphaned Shopify CDN files by cross-referencing stored assets against product, page, and article references.

174|18|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-file-storage-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-admin-file-storage-audit
Source: https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/store-management/shopify-admin-file-storage-audit
Command: npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-file-storage-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unused media assets remain in Shopify CDN storage even after you stop referencing them in products, pages, or blog articles, causing higher storage costs and slower back-office search.

Core Features & Use Cases

  • CDN file inventory: Enumerates every stored file (images, videos, and generic files) with metadata like size and created date.
  • Cross-reference detection: Compares CDN files against references found in products, pages, and articles to identify orphaned assets.
  • Read-only reporting: Produces a safe audit (no deletions) with both human and JSON output, plus a CSV listing for cleanup workflows.

Use case: After a theme refresh or content migration, run the audit to identify which old images/videos are no longer referenced anywhere and prioritize manual cleanup.

Quick Start

Run the skill to generate an orphaned file report for files older than 30 days in your store.

Frequently Asked Questions about shopify-admin-file-storage-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find unused images and videos in Shopify CDN storage?

To find unused images and videos in Shopify CDN storage, you can run an audit that inventories stored files and cross-references them against product, page, and article references to identify orphaned assets.

What is the best way to clean up orphaned assets after a Shopify theme update?

The best way to clean up orphaned assets after a Shopify theme update is to generate a read-only CSV or JSON report of unreferenced files, allowing you to safely prioritize manual removal without accidental deletions.

Do I need specific Shopify permissions to audit CDN file storage?

Yes, you need specific Shopify permissions to audit CDN file storage; authenticated access requires read_files, read_products, and read_content scopes to perform cross-reference detection across your store.

How does cross-reference detection work for Shopify media governance?

Cross-reference detection for Shopify media governance works by using paginated GraphQL queries to compare stored CDN files against content references in products, pages, and articles, computing orphan status with configurable filters.

Can I export a CSV report of orphaned Shopify files for cleanup workflows?

Yes, you can export a CSV report of orphaned Shopify files for cleanup workflows; the audit produces both human-readable and JSON outputs alongside a CSV listing to support media governance tasks.

Why does Shopify back-office search slow down after content migrations?

Shopify back-office search slows down after content migrations because unused media assets remain in CDN storage, causing storage bloat and higher costs until you identify and remove the unreferenced files.