All guides ยท Updated 22 November 2026
How to find and remove leftover app code in your Shopify theme
Leftover app code is code an app or a developer added to your theme files that stays after the app is uninstalled; you find it by searching theme.liquid and the snippets folder for the app's name or address, and remove it on a duplicate theme first.
What uninstalling removes, and what it leaves
When you uninstall an app, Shopify removes its app embeds and app blocks, and the script tags the app created. Code that was pasted or written into your theme files is different: it belongs to the theme, so it stays until someone deletes it.
That code usually points at the old app's servers. It can slow pages down, show errors in the browser console or leave an empty space where a widget used to be.
Where leftover code usually hides
Most leftovers sit in a few places in the theme code editor:
- layout/theme.liquid, often just before the closing head or body tag
- the snippets folder, as a file named after the app, included with a render or include tag
- product, cart and collection templates or sections, where review stars or upsell blocks were placed
- the assets folder, as a script or style file the app uploaded
How to remove it safely
Work on a copy so your live store is never at risk:
- Duplicate your published theme and work on the copy.
- In the code editor, search for the app's name and the address its scripts loaded from.
- Delete the render or include line first, then the snippet or asset file it pointed to.
- Preview the copy on the home page, a product page and the cart, on a phone and a computer.
- Publish the copy only when every page looks and works as before.
Leftover code is not the same as a script tag
On 1 March 2027 Shopify stops loading script tags, which apps add through the API and which never appear in your theme files. Leftover code is written into the theme itself, so the deadline does not switch it off, and it keeps loading until it is removed.
A store can have both: script tags from apps you still use, which stop on 1 March 2027, and leftover code from apps you removed, which keeps loading. Fixing one does not fix the other.
Check both before the deadline
The free check reads your public storefront and shows how many scripts still load through script tags and which kinds of features they power. Leftover code lives in theme files, which are private, so it can only be found from inside your store admin.
Source: Shopify's developer changelog, "Online store script tags deprecation".
See what your store loses on 1 March 2027
The free check reads your public storefront and shows how many scripts stop loading and which kinds of features they power. It takes about a minute and changes nothing in your store.