Theme cleanup guide
Remove leftover app code from your Shopify theme
What you’ll need
Your theme file (ZIP) (Shopify emails it to you)
How to get this: Your theme file (ZIP)
- Online Store › Themes › … on your theme › Download theme file.
- Shopify emails you a link; download the ZIP from the email.
A duplicate of your theme to test on
How to get this: A duplicate of your theme to test on
- Online Store › Themes › … on your theme › Duplicate.
- Make the change on the copy, preview it, and publish only when it works.
Why apps leave code behind
Older apps (and some current ones) installed themselves by editing theme files: a script tag in theme.liquid, a snippet, a render tag in the product section. Uninstalling the app removes its access, not those edits. Newer apps use app blocks and app embeds, which Shopify turns off by itself.
What the scan finds
- Script and stylesheet tags that load from 70+ known app and tracking services.
- Render and include tags for snippets that no longer exist (the “Could not find asset” error).
- Files in assets/ that nothing loads anymore, and snippets nothing renders.
- Markup from retired services, like Shopify’s old Product Reviews app and Google Optimize.
- App blocks and app embeds still listed in your templates and theme settings.
Clean it up safely
- Keep the ZIP Shopify emailed you as a backup.
- In the finder, tick the apps you still use so their code stays.
- Review the list. Items under “Check before removing” are off by default.
- Download the cleaned theme and upload it in Online Store > Themes > Add theme > Upload zip file. It arrives as a new, unpublished theme.
- Preview it: home page, a product, the cart and checkout button. Then publish.
Prefer to edit by hand?
Download the report instead. It lists every file and line. Open Edit code on a duplicate theme and remove each one. An uploaded copy doesn’t get one-click updates from the Theme Store, so hand edits on a duplicate are better if you rely on those updates.