Actions83
- Product Actions
- Product Variant Actions
- Collection Actions
- Article Actions
- Blog Actions
- Customer Actions
- Order Actions
- Draft Order Actions
- Inventory Actions
- File Actions
- Publication Actions
- Translation Actions
- Taxonomy Actions
- Metaobject Actions
- Metaobject Definition Actions
- Metafield Value Actions
- Metafield Definition Actions
- Service Actions
File → Delete Unused Images
AI-generatedSummary
Find Shopify image files matching used_in:none media_type:IMAGE and delete them when Dry Run is disabled. Dry Run is enabled by default to return matches without deleting them.
Inputs
- authentication — Choose Admin API Credentials (default) or OAuth2 to authenticate with Shopify.
- dryRun — Defaults to true: return matched files without deleting them. Disable to delete matching unused images.
- getAll — Fetch all pages of matching unused images. Defaults to true.
- limit — Maximum results when Get All is disabled. Defaults to 50; accepts 1–250.
- cleanupOptions — Optionally append additionalQuery search terms to
used_in:none media_type:IMAGE, choose sortKey (Created At, Filename, ID, Original Upload Size, or Updated At), and reverse the sort order. Declared defaults are Updated At and reverse=false. - returnFields — Choose additional response field groups: Generic File Details, Image Details, and Preview. All three are selected by default; core identity fields are always returned.
- outputMode — Choose Simplified (default), Raw, or Selected Fields output.
- selectedFields — Specify fields to include when Output Mode is Selected Fields.
Output shape
Matched files in Dry Run mode; the deletion result shape is not specified by the provided source signatures.
Get All controls whether all pages are fetched; otherwise Limit caps results. Fields to Return and Output Mode configure the declared response content and presentation. The source pack omits implementation bodies, so exact output envelopes, deletion result fields, and error handling cannot be confirmed.