Guides / Shopify
How do I remove leftover app code from my Shopify theme after uninstalling an app?
By the WebFixed team. Last updated 21 September 2026.
The short answer
Leftover app code is left behind because an app loses all access to your store the moment you uninstall it, so it cannot clean up the theme files it edited. First duplicate your theme, then check App embeds in the theme editor, then look in the code editor for snippets named after the app and for the render tags that load them. Remove the render tag and the snippet together, and test on the duplicate before publishing. Apps built the newer way, with app blocks and app embeds, remove themselves fully and need no code clean up.
Why apps leave code behind
There are two ways a Shopify app can add features to your storefront. Newer apps use theme app extensions, which show up as app blocks and app embeds in the theme editor. Nothing is written into your theme files, so uninstalling the app removes everything.
Older apps edit your theme files directly. They add small files called snippets, add script or style files to the Assets folder, and insert a line into a layout or template file that loads them. When you uninstall the app, Shopify cuts off its access immediately, so it has no chance to undo those edits. The code keeps running, which can slow pages down, cause browser errors and occasionally break features such as the add to cart button.
Duplicate your theme first
Always work on a copy. Removing the wrong line from a theme file can break every page of the store, and a duplicate gives you a working version to go back to.
- Go to Online Store, then Themes.
- Click the three dot button on your live theme and choose Duplicate.
- Make your changes on the copy, not on the live theme. When you have tested it with Preview, publish the copy.
Check app embeds and app blocks in the theme editor
- On the duplicate theme, click Customize.
- Open App embeds in the left hand sidebar.
- Look for entries belonging to apps you no longer use. Embeds from uninstalled apps normally vanish by themselves, so switch off any that remain and are not needed.
- Open the templates where the app used to appear, such as the product page, and remove any custom Liquid sections that were added for it.
- Save.
Find and remove snippets and render tags
A render tag is a line of Liquid, Shopify’s template language, that pulls a snippet into a page. It looks like {% render 'app-name' %}, or {% include 'app-name' %} in older themes. The tag and the snippet need to be removed together. If you delete the snippet but leave the tag, the page shows a Liquid error saying the snippet could not be found.
- On the duplicate theme, click the three dot button and choose Edit code.
- Open the Snippets folder and look for files named after the app or its developer. Note each file name.
- Open the Assets folder and look for script or style files with the same name.
- Open theme.liquid in the Layout folder. Search within the file for each snippet name and for the app’s name. Many apps wrap their code in comments that name the app.
- Do the same in the files for the pages the app affected, such as the main product section or the cart.
- Delete each render or include line that refers to the app, along with any script tags and comment lines that belong to it. Save the file.
- When no tags refer to a snippet any more, delete the snippet and the matching asset files.
- Click Preview, check the main page types and add a product to the cart.
If something breaks, the code editor keeps older versions of each file, so you can roll a file back. Your live store is not affected, because you are working on a duplicate.
When not to touch it
- You are not sure which app a piece of code belongs to.
- The code sits inside a conditional block, a section starting with {% if %}, and removing it would leave the opening or closing tag without its partner.
- The app changed how prices, variants or the add to cart form work. The original theme code may need to be put back, not only the app code removed.
- The leftover code is causing no errors. Unused snippets that nothing loads are harmless.
- The app is still installed. Ask its support team first, because many will remove their own code on request.
How to avoid leftovers next time
- Before uninstalling an app, read its help pages for uninstall steps and follow them while the app still has access.
- Duplicate your theme before installing any app that edits theme code.
- Where you have a choice, prefer apps that work through app blocks and app embeds.
When to get help
Stop if you cannot tell which app a block of code belongs to, if the app replaced part of your product form or cart, or if removing a line on the duplicate causes errors you cannot explain. Those cases need someone who can read Liquid and restore what the theme had before. WebFixed removes leftover app code and repairs what it broke for a fixed price agreed up front, with one-off fixes from £39 including VAT and nothing charged until you accept the quote.
Related questions
- Does uninstalling a Shopify app remove its code?
- Only partly. App blocks, app embeds and scripts the app loaded through Shopify are removed automatically. Code the app wrote directly into your theme files stays until someone deletes it.
- I see a Liquid error about a missing snippet. What does it mean?
- A render tag is asking for a snippet file that has been deleted. Find the tag with that snippet’s name in your theme code and remove it, working on a duplicate theme.
- Can I reinstall the app so it removes its own code?
- Sometimes. Some apps offer a clean up option in their settings or will do it through their support team once reinstalled, so it is worth asking before you edit code yourself.